summaryrefslogtreecommitdiff
path: root/src/oid.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-02-20 11:00:31 -0800
committerRussell Belfer <rb@github.com>2014-02-20 11:00:31 -0800
commit978a4ed5ebd3892731434e4023f20383f820c112 (patch)
treef2e72dac977ca49d620a0db1cf3e416805e30c70 /src/oid.c
parent2dc49ea93c5c320216806089fee579021f3ce9cf (diff)
downloadlibgit2-978a4ed5ebd3892731434e4023f20383f820c112.tar.gz
Make git_oid_equal a non-inline API
Diffstat (limited to 'src/oid.c')
-rw-r--r--src/oid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/oid.c b/src/oid.c
index 567b6cf06..f74c43fe2 100644
--- a/src/oid.c
+++ b/src/oid.c
@@ -179,6 +179,11 @@ int git_oid_cmp(const git_oid *a, const git_oid *b)
return git_oid__cmp(a, b);
}
+int git_oid_equal(const git_oid *a, const git_oid *b)
+{
+ return (git_oid__cmp(a, b) == 0);
+}
+
int git_oid_ncmp(const git_oid *oid_a, const git_oid *oid_b, size_t len)
{
const unsigned char *a = oid_a->id;