summaryrefslogtreecommitdiff
path: root/src/oid.h
blob: afdfcf9ba23a01173582175d543bbe446f9024e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef INCLUDE_oid_h__
#define INCLUDE_oid_h__

/**
 * Compare the first ('len'*4) bits of two raw formatted oids.
 * This can be useful for internal use.
 * Return 0 if they match.
 */
int git_oid_ncmp_raw(unsigned int len, const unsigned char *a, const unsigned char *b);

/**
 * Compare the first 'len' characters of two hex formatted oids.
 * Return 0 if they match.
 */
int git_oid_ncmp_hex(unsigned int len, const unsigned char *a, const unsigned char *b);

#endif