diff options
author | Russell Belfer <rb@github.com> | 2013-04-29 13:52:12 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-29 13:52:12 -0700 |
commit | b7f167da29effa125663b143d3daf79a6ad88d2e (patch) | |
tree | 585355250e7078c7018a78c68539dc139912013b /src/checkout.c | |
parent | aa8f010120577e61715f3ae1286a03055815f9c3 (diff) | |
download | libgit2-b7f167da29effa125663b143d3daf79a6ad88d2e.tar.gz |
Make git_oid_cmp public and add git_oid__cmp
Diffstat (limited to 'src/checkout.c')
-rw-r--r-- | src/checkout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checkout.c b/src/checkout.c index e29fccd05..96e15093c 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -138,7 +138,7 @@ static bool checkout_is_workdir_modified( if (!sm_oid) return false; - return (git_oid_cmp(&baseitem->oid, sm_oid) != 0); + return (git_oid__cmp(&baseitem->oid, sm_oid) != 0); } /* Look at the cache to decide if the workdir is modified. If not, @@ -149,7 +149,7 @@ static bool checkout_is_workdir_modified( if (wditem->mtime.seconds == ie->mtime.seconds && wditem->mtime.nanoseconds == ie->mtime.nanoseconds && wditem->file_size == ie->file_size) - return (git_oid_cmp(&baseitem->oid, &ie->oid) != 0); + return (git_oid__cmp(&baseitem->oid, &ie->oid) != 0); } /* depending on where base is coming from, we may or may not know @@ -163,7 +163,7 @@ static bool checkout_is_workdir_modified( wditem->file_size, &oid) < 0) return false; - return (git_oid_cmp(&baseitem->oid, &oid) != 0); + return (git_oid__cmp(&baseitem->oid, &oid) != 0); } #define CHECKOUT_ACTION_IF(FLAG,YES,NO) \ |