diff options
author | Russell Belfer <rb@github.com> | 2013-04-29 07:34:13 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-29 07:34:13 -0700 |
commit | 0c72248b9171acee7480a77edee89fa20fabdae8 (patch) | |
tree | 5ff8ded253a82b1ab8ac798b33cf74a56a6963d9 /src/oid.c | |
parent | 0f85c208406ef10e2f1c7fea6fb42ef52fe65134 (diff) | |
download | libgit2-0c72248b9171acee7480a77edee89fa20fabdae8.tar.gz |
Introduce git_oid_compare, an exported oid cmp
Diffstat (limited to 'src/oid.c')
-rw-r--r-- | src/oid.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -166,6 +166,11 @@ void git_oid_cpy(git_oid *out, const git_oid *src) memcpy(out->id, src->id, sizeof(out->id)); } +int git_oid_compare(const git_oid *oid_a, const git_oid *oid_b) +{ + return git_oid_cmp(oid_a, oid_b); +} + int git_oid_ncmp(const git_oid *oid_a, const git_oid *oid_b, size_t len) { const unsigned char *a = oid_a->id; |