diff options
| author | Marc Pegon <pegon.marc@gmail.com> | 2011-06-06 10:55:36 +0200 |
|---|---|---|
| committer | Marc Pegon <pegon.marc@gmail.com> | 2011-06-06 17:04:37 +0200 |
| commit | c09093cce2902bca40f3c0746bc754780f351a45 (patch) | |
| tree | 80d7aed83d4d444193d094024781a42fef22a411 /src/oid.h | |
| parent | f9213015fddb8636daa993080cbbec70a02cba5c (diff) | |
| download | libgit2-c09093cce2902bca40f3c0746bc754780f351a45.tar.gz | |
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.
Diffstat (limited to 'src/oid.h')
| -rw-r--r-- | src/oid.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,12 +6,12 @@ * This can be useful for internal use. * Return 0 if they match. */ -int git_oid_match_raw(unsigned int len, const unsigned char *a, const unsigned char *b); +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_match_hex(unsigned int len, const unsigned char *a, const unsigned char *b); +int git_oid_ncmp_hex(unsigned int len, const unsigned char *a, const unsigned char *b); #endif |
