diff options
author | Vicent Martà <vicent@github.com> | 2013-10-04 08:50:44 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-10-04 08:50:44 -0700 |
commit | ec5fe2da8b4afe0b65156477f3cfbb30b9a25643 (patch) | |
tree | f500bafe60706821b7539c109d6386fd6cfe73f5 /include | |
parent | 146b4d1c5f98aa14df086503f996d131d40b92f8 (diff) | |
parent | da7b78fa446b31e7e197d51129d9bd005acc69da (diff) | |
download | libgit2-ec5fe2da8b4afe0b65156477f3cfbb30b9a25643.tar.gz |
Merge pull request #1892 from libgit2/ntk/topic/index_read
Make git_index_read() cope with external additions and removals of the index file
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/index.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index 131d04945..8064a62ff 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -225,6 +225,9 @@ GIT_EXTERN(int) git_index_set_caps(git_index *index, unsigned int caps); * Update the contents of an existing index object in memory * by reading from the hard disk. * + * If the file doesn't exist on the filesystem, the index + * will be cleared from its current content. + * * @param index an existing index object * @return 0 or an error code */ |