diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-26 17:46:35 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-26 17:46:35 +0200 |
| commit | 354268ca488fc89346d5874b446510f0cc89c007 (patch) | |
| tree | 11a9ad8574670e2436406dce14a8e281c7ece3fc /src/iterator.h | |
| parent | 3c7a46978deedd012c8a024eff89b539e044f57d (diff) | |
| parent | b7f5cb8dd767063719919780d90fc3470d340ac7 (diff) | |
| download | libgit2-354268ca488fc89346d5874b446510f0cc89c007.tar.gz | |
Merge pull request #3259 from ethomson/stash_apply_argh
Stash apply: stage new files even when not updating the index
Diffstat (limited to 'src/iterator.h')
| -rw-r--r-- | src/iterator.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/iterator.h b/src/iterator.h index 57f82416a..893e5db50 100644 --- a/src/iterator.h +++ b/src/iterator.h @@ -294,4 +294,19 @@ extern int git_iterator_advance_over_with_status( */ extern int git_iterator_index(git_index **out, git_iterator *iter); +typedef int (*git_iterator_walk_cb)( + const git_index_entry **entries, + void *data); + +/** + * Walk the given iterators in lock-step. The given callback will be + * called for each unique path, with the index entry in each iterator + * (or NULL if the given iterator does not contain that path). + */ +extern int git_iterator_walk( + git_iterator **iterators, + size_t cnt, + git_iterator_walk_cb cb, + void *data); + #endif |
