summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-01 08:40:48 -0700
committerVicent Martí <vicent@github.com>2013-09-01 08:40:48 -0700
commitac2e7dc6fb8edf6338aeed659ea179f0cffc32fd (patch)
tree4f4f534cf7407334b1666d4ae7bdc011f5425b60 /include/git2
parentce9390858f0f5252a8986bc04e0b5c779aafb8aa (diff)
parente68938e0b98fac52da20171f33ca3abfdbf3f434 (diff)
downloadlibgit2-ac2e7dc6fb8edf6338aeed659ea179f0cffc32fd.tar.gz
Merge pull request #1820 from linquize/git_oid_streq
Update documentation of git_oid_streq to remove outdated error code
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/oid.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 8bf43a279..384b656d7 100644
--- a/include/git2/oid.h
+++ b/include/git2/oid.h
@@ -188,8 +188,7 @@ GIT_EXTERN(int) git_oid_ncmp(const git_oid *a, const git_oid *b, size_t len);
*
* @param id oid structure.
* @param str input hex string of an object id.
- * @return GIT_ENOTOID if str is not a valid hex string,
- * 0 in case of a match, GIT_ERROR otherwise.
+ * @return 0 in case of a match, -1 otherwise.
*/
GIT_EXTERN(int) git_oid_streq(const git_oid *id, const char *str);