summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-01-15 11:03:05 +0100
committernulltoken <emeric.fermas@gmail.com>2013-02-05 15:47:16 +0100
commit3f0ed118d16c1b95d24f344384ec4ebb08ce1640 (patch)
tree897a1c7830aada733ea4ed9425cb3a14888813bc
parentfb60d268df2272626f48cfed7b2a185413e7e9f4 (diff)
downloadlibgit2-3f0ed118d16c1b95d24f344384ec4ebb08ce1640.tar.gz
index: Enhance documentation
-rw-r--r--include/git2/index.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/git2/index.h b/include/git2/index.h
index 9f9d144cf..da95ee9bd 100644
--- a/include/git2/index.h
+++ b/include/git2/index.h
@@ -400,13 +400,14 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
GIT_EXTERN(int) git_index_remove_bypath(git_index *index, const char *path);
/**
- * Find the first index of any entries which point to given
+ * Find the first position of any entries which point to given
* path in the Git index.
*
* @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 0 if found, < 0 otherwise (GIT_ENOTFOUND)
+ * @return a zero-based position in the index if found;
+ * GIT_ENOTFOUND otherwise
*/
GIT_EXTERN(int) git_index_find(size_t *at_pos, git_index *index, const char *path);