diff options
author | Russell Belfer <rb@github.com> | 2012-11-13 14:02:59 -0800 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-14 22:55:40 -0800 |
commit | bad68c0a998116685ad75cab84210004dd2c5be1 (patch) | |
tree | d8b6db9be06ea1fcc150b5a7d2ba4cd635a174aa /src/diff.h | |
parent | 5735bf5e6ab4da347b601d4b85c09c5c701dc002 (diff) | |
download | libgit2-bad68c0a998116685ad75cab84210004dd2c5be1.tar.gz |
Add iterator for git_index object
The index iterator could previously only be created from a repo
object, but this allows creating an iterator from a `git_index`
object instead (while keeping, though renaming, the old function).
Diffstat (limited to 'src/diff.h')
-rw-r--r-- | src/diff.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h index 1e3be7593..3df7ce6d6 100644 --- a/src/diff.h +++ b/src/diff.h @@ -61,5 +61,11 @@ extern bool git_diff_delta__should_skip( extern int git_diff__oid_for_file( git_repository *, const char *, uint16_t, git_off_t, git_oid *); +extern int git_diff__tree_to_index( + git_diff_list **diff, + git_tree *tree, + git_index *index, + const git_diff_options *opts); + #endif |