diff options
author | Edward Thomson <ethomson@github.com> | 2021-06-15 07:42:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 07:42:20 +0100 |
commit | 0d0150d8eb5fe5654af4172fe2f923f5d1317eb7 (patch) | |
tree | ae7ab94272564fddee7c472196f78c54b2551821 | |
parent | 6efcfdb89b9aa7b57d6028c3968037d545db1e11 (diff) | |
parent | 1bdd937d162f8e2d8dd75c8a2606ff90bd37cde7 (diff) | |
download | libgit2-0d0150d8eb5fe5654af4172fe2f923f5d1317eb7.tar.gz |
Merge pull request #5910 from arxanas/patch-1
-rw-r--r-- | include/git2/index.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index 14a132497..532a52091 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -702,7 +702,7 @@ GIT_EXTERN(int) git_index_update_all( * @param at_pos the address to which the position of the index entry is written (optional) * @param index an existing index object * @param path path to search - * @return a zero-based position in the index if found; GIT_ENOTFOUND otherwise + * @return 0 or an error code */ GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *path); @@ -713,7 +713,7 @@ GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *pat * @param at_pos the address to which the position of the index entry is written (optional) * @param index an existing index object * @param prefix the prefix to search for - * @return 0 with valid value in at_pos; an error code otherwise + * @return 0 or an error code */ GIT_EXTERN(int) git_index_find_prefix(size_t *at_pos, git_index *index, const char *prefix); |