diff options
author | Marc Pegon <pegon.marc@gmail.com> | 2011-05-29 11:45:34 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-06-01 23:40:42 +0200 |
commit | da03c9f35b282e70f0cb7e6ae1638df476c4e0df (patch) | |
tree | 5a053b89ce5c2acf97eaca1efc4b19a64e705beb /include/git2/oid.h | |
parent | ac2b94ad7658b53035b8518842348a083decd418 (diff) | |
download | libgit2-da03c9f35b282e70f0cb7e6ae1638df476c4e0df.tar.gz |
Changed return value of git_oid_match to be consistent with the other compare methods (0 means oids match). Added method to compare prefixes of hex formatted oids.
Diffstat (limited to 'include/git2/oid.h')
-rw-r--r-- | include/git2/oid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h index 062b9ca8..f1f7dcc6 100644 --- a/include/git2/oid.h +++ b/include/git2/oid.h @@ -142,7 +142,7 @@ GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b); * @param len the number of hex chars to compare * @param a first oid structure. * @param b second oid structure. - * @return 1 in case of a match + * @return 0 in case of a match */ GIT_EXTERN(int) gid_oid_match(unsigned int len, git_oid *a, git_oid *b); |