Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-30 00:52:12 +0400
committerRussell Belfer <rb@github.com>2013-04-30 00:52:12 +0400
commitb7f167da29effa125663b143d3daf79a6ad88d2e (patch)
tree585355250e7078c7018a78c68539dc139912013b /src/checkout.c
parentaa8f010120577e61715f3ae1286a03055815f9c3 (diff)
Make git_oid_cmp public and add git_oid__cmp
Diffstat (limited to 'src/checkout.c')
-rw-r--r--src/checkout.c6
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) \