summaryrefslogtreecommitdiff
path: root/src/odb_pack.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-06-06 18:28:11 -0700
committerVicent Martí <tanoku@gmail.com>2011-06-06 18:28:11 -0700
commit1b0d92b141a784663a34cf8dec4242c471586429 (patch)
treef6110df12045f693ebe67deca8f03f2c7097da17 /src/odb_pack.c
parentfe79750baa01e74e03b6ad079ab2d6294b0e01d7 (diff)
parentc09093cce2902bca40f3c0746bc754780f351a45 (diff)
downloadlibgit2-1b0d92b141a784663a34cf8dec4242c471586429.tar.gz
Merge pull request #238 from pegonma/git_oid_ncmp
Better name for git_oid_match
Diffstat (limited to 'src/odb_pack.c')
-rw-r--r--src/odb_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 02a1a61aa..29ceb02dc 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;
}
}