Commit ac2e7dc6fb8edf6338aeed659ea179f0cffc32fd

Vicent Martí 2013-09-01T08:40:48

Merge pull request #1820 from linquize/git_oid_streq Update documentation of git_oid_streq to remove outdated error code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/git2/oid.h b/include/git2/oid.h
index 8bf43a2..384b656 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);