diff options
| author | Russell Belfer <rb@github.com> | 2012-12-06 13:26:58 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-12-10 15:38:28 -0800 |
| commit | 9950d27ab62cc31a3ebf1944fd33dd65432be790 (patch) | |
| tree | ca7c8efe8b4a5d6e2adc0ae66e26d22a03c76155 /src/checkout.c | |
| parent | 4cbe9a1be18338b7e223b42e6019c58181204123 (diff) | |
| download | libgit2-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/checkout.c')
| -rw-r--r-- | src/checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checkout.c b/src/checkout.c index 33de7adf3..d9f0f8fad 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -448,8 +448,7 @@ static int checkout_get_actions( !(error == GIT_ENOTFOUND || error == GIT_EORPHANEDHEAD)) return -1; - if ((error = git_iterator_for_tree_range( - &hiter, data->repo, head, pfx, pfx)) < 0) + if ((error = git_iterator_for_tree_range(&hiter, head, pfx, pfx)) < 0) goto fail; if ((diff->opts.flags & GIT_DIFF_DELTAS_ARE_ICASE) != 0 && |
