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_loose.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_loose.c')
-rw-r--r-- | src/odb_loose.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_loose.c b/src/odb_loose.c index deff59ad0..9564ef05b 100644 --- a/src/odb_loose.c +++ b/src/odb_loose.c @@ -492,7 +492,7 @@ int fn_locate_object_short_oid(void *state, char *pathbuf) { if (!gitfo_exists(pathbuf) && gitfo_isdir(pathbuf)) { /* We are already in the directory matching the 2 first hex characters */ - if (!git_oid_match_hex(sstate->short_oid_len-2, sstate->short_oid+2, (unsigned char *)pathbuf + sstate->dir_len)) { + if (!git_oid_ncmp_hex(sstate->short_oid_len-2, sstate->short_oid+2, (unsigned char *)pathbuf + sstate->dir_len)) { if (!sstate->found) { sstate->res_oid[0] = sstate->short_oid[0]; sstate->res_oid[1] = sstate->short_oid[1]; |