diff options
author | Vicent Martà <vicent@github.com> | 2013-03-12 09:23:53 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-03-12 09:23:53 -0700 |
commit | 1ac10aae1da23f4a626d8eecd636402572785426 (patch) | |
tree | a315a5ed203ed12807b814b65e825923c536f38b /src/notes.c | |
parent | b70bf922a1de35722904930c42467e95c889562f (diff) | |
parent | 62beacd300a6d3c62943723928f45ef852485e62 (diff) | |
download | libgit2-1ac10aae1da23f4a626d8eecd636402572785426.tar.gz |
Merge pull request #1408 from arrbee/refactor-iterators
Refactor iterators
Diffstat (limited to 'src/notes.c')
-rw-r--r-- | src/notes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notes.c b/src/notes.c index a1a47d989..ef48ac88e 100644 --- a/src/notes.c +++ b/src/notes.c @@ -625,7 +625,7 @@ int git_note_iterator_new( if (error < 0) goto cleanup; - if ((error = git_iterator_for_tree(it, tree)) < 0) + if ((error = git_iterator_for_tree(it, tree, 0, NULL, NULL)) < 0) git_iterator_free(*it); cleanup: @@ -643,7 +643,7 @@ int git_note_next( int error; const git_index_entry *item; - if ((error = git_iterator_current(it, &item)) < 0) + if ((error = git_iterator_current(&item, it)) < 0) goto exit; if (item != NULL) { @@ -651,7 +651,7 @@ int git_note_next( error = process_entry_path(item->path, annotated_id); if (error >= 0) - error = git_iterator_advance(it, NULL); + error = git_iterator_advance(NULL, it); } else { error = GIT_ITEROVER; } |