diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-01-02 09:58:39 +0100 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-01-02 09:58:39 +0100 |
| commit | 7a704309ae012b8e92eb6103b0d14dd3c22a1cb5 (patch) | |
| tree | a0e917d553db5fc4475be2fff7004268dc36d13d /include/git2 | |
| parent | 9191a6d2466d0f3c187a66f65757c95c1c3f772d (diff) | |
| parent | 0fb3fba123d8fbd99a9e1f9f47c192c704daee24 (diff) | |
| download | libgit2-7a704309ae012b8e92eb6103b0d14dd3c22a1cb5.tar.gz | |
Merge remote-tracking branch 'drizzd/diff-index-tests' into development
Conflicts:
tests-clay/clay.h
tests-clay/clay_main.c
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/index.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/git2/index.h b/include/git2/index.h index 5e9c34d4b..627d6c4fd 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -301,6 +301,17 @@ GIT_EXTERN(const git_index_entry_unmerged *) git_index_get_unmerged_byindex(git_ */ GIT_EXTERN(int) git_index_entry_stage(const git_index_entry *entry); +/** + * Read a tree into the index file + * + * The current index contents will be replaced by the specified tree. + * + * @param index an existing index object + * @param tree tree to read + * @return GIT_SUCCESS or an error code + */ +GIT_EXTERN(int) git_index_read_tree(git_index *index, git_tree *tree); + /** @} */ GIT_END_DECL #endif |
