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/odb_pack.c | |
| 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/odb_pack.c')
| -rw-r--r-- | src/odb_pack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index 525cfa429..0450d4b62 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -1011,7 +1011,7 @@ static int pack_entry_find_offset( if (pos < (int)p->num_objects) { current = index + pos * stride; - if (!git_oid_match_raw(len, short_oid->id, current)) { + if (!git_oid_ncmp_raw(len, short_oid->id, current)) { found = 1; } } @@ -1021,7 +1021,7 @@ static int pack_entry_find_offset( /* Check for ambiguousity */ const unsigned char *next = current + stride; - if (!git_oid_match_raw(len, short_oid->id, next)) { + if (!git_oid_ncmp_raw(len, short_oid->id, next)) { found = 2; } } |
