diff options
author | Russell Belfer <rb@github.com> | 2012-12-07 01:26:58 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-12-11 03:38:28 +0400 |
commit | 9950d27ab62cc31a3ebf1944fd33dd65432be790 (patch) | |
tree | ca7c8efe8b4a5d6e2adc0ae66e26d22a03c76155 /src/submodule.c | |
parent | 4cbe9a1be18338b7e223b42e6019c58181204123 (diff) |
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/submodule.c')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index 21a1875c2..3d9950d58 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1156,7 +1156,7 @@ static int load_submodule_config_from_head( if ((error = git_repository_head_tree(&head, repo)) < 0) return error; - if ((error = git_iterator_for_tree(&i, repo, head)) < 0) { + if ((error = git_iterator_for_tree(&i, head)) < 0) { git_tree_free(head); return error; } |