Hash :
c09093cc
Author :
Date :
2011-06-06T10:55:36
Renamed git_oid_match to git_oid_ncmp. As suggested by carlosmn, git_oid_ncmp would probably be a better name than git_oid_match, for it does the same as git_oid_cmp but only up to a certain amount of hex digits.
#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