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/pack.c
parentaa8f010120577e61715f3ae1286a03055815f9c3 (diff)
Make git_oid_cmp public and add git_oid__cmp
Diffstat (limited to 'src/pack.c')
-rw-r--r--src/pack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pack.c b/src/pack.c
index 33cdf760a..f8b621ef8 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -12,8 +12,8 @@
#include "sha1_lookup.h"
#include "mwindow.h"
#include "fileops.h"
+#include "oid.h"
-#include "git2/oid.h"
#include <zlib.h>
static int packfile_open(struct git_pack_file *p);
@@ -875,7 +875,7 @@ static int packfile_open(struct git_pack_file *p)
idx_sha1 = ((unsigned char *)p->index_map.data) + p->index_map.len - 40;
- if (git_oid_cmp(&sha1, (git_oid *)idx_sha1) == 0)
+ if (git_oid__cmp(&sha1, (git_oid *)idx_sha1) == 0)
return 0;
cleanup:
@@ -1139,7 +1139,7 @@ int git_pack_entry_find(
if (len == GIT_OID_HEXSZ && p->num_bad_objects) {
unsigned i;
for (i = 0; i < p->num_bad_objects; i++)
- if (git_oid_cmp(short_oid, &p->bad_object_sha1[i]) == 0)
+ if (git_oid__cmp(short_oid, &p->bad_object_sha1[i]) == 0)
return packfile_error("bad object found in packfile");
}