summaryrefslogtreecommitdiff
path: root/include/git2/index.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-02-11 11:44:00 -0800
committerRussell Belfer <rb@github.com>2013-02-11 11:44:00 -0800
commit390a3c81410a219b13aa6f333949c803524c8bd2 (patch)
treeb6487640acf5adb87f5a0f8ee25dedd44df63ffb /include/git2/index.h
parente026cfee003e103d79e56983d68a206ae907eada (diff)
parent3ad052218cd03fe58b254f878825e3f0fd4b3054 (diff)
downloadlibgit2-390a3c81410a219b13aa6f333949c803524c8bd2.tar.gz
Merge pull request #1190 from nulltoken/topic/reset-paths
reset: Allow the selective reset of pathspecs
Diffstat (limited to 'include/git2/index.h')
-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);