summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-12-06 13:26:58 -0800
committerRussell Belfer <rb@github.com>2012-12-10 15:38:28 -0800
commit9950d27ab62cc31a3ebf1944fd33dd65432be790 (patch)
treeca7c8efe8b4a5d6e2adc0ae66e26d22a03c76155 /src/diff.h
parent4cbe9a1be18338b7e223b42e6019c58181204123 (diff)
downloadlibgit2-9950d27ab62cc31a3ebf1944fd33dd65432be790.tar.gz
Clean up iterator APIs
This removes the need to explicitly pass the repo into iterators where the repo is implied by the other parameters. This moves the repo to be owned by the parent struct. Also, this has some iterator related updates to the internal diff API to lay the groundwork for checkout improvements.
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/diff.h b/src/diff.h
index f93bab18d..8f5ea3485 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -61,6 +61,12 @@ 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__from_iterators(
+ git_diff_list **diff_ptr,
+ git_repository *repo,
+ git_iterator *old_iter,
+ git_iterator *new_iter,
+ const git_diff_options *opts);
#endif