diff options
| author | Russell Belfer <rb@github.com> | 2012-12-10 15:29:44 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-12-10 15:38:41 -0800 |
| commit | 91e7d26303b17c7ebc45ba565247e968aaa20848 (patch) | |
| tree | cb205e56dfcbf9dd4df6ed150f152106aa6da342 /src/tree.h | |
| parent | 9950d27ab62cc31a3ebf1944fd33dd65432be790 (diff) | |
| download | libgit2-91e7d26303b17c7ebc45ba565247e968aaa20848.tar.gz | |
Fix iterator reset and add reset ranges
The `git_iterator_reset` command has not been working in all cases
particularly when there is a start and end range. This fixes it
and adds tests for it, and also extends it with the ability to
update the start/end range strings when an iterator is reset.
Diffstat (limited to 'src/tree.h')
| -rw-r--r-- | src/tree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h index e0bcd6acf..c28523d6f 100644 --- a/src/tree.h +++ b/src/tree.h @@ -29,6 +29,10 @@ struct git_treebuilder { git_vector entries; }; +GIT_INLINE(int) git_tree__dup(git_tree **dest, git_tree *source) +{ + return git_object__dup((git_object **)dest, (git_object *)source); +} GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e) { |
