diff options
author | Russell Belfer <rb@github.com> | 2012-11-14 02:02:59 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-11-15 10:55:40 +0400 |
commit | bad68c0a998116685ad75cab84210004dd2c5be1 (patch) | |
tree | d8b6db9be06ea1fcc150b5a7d2ba4cd635a174aa /src/submodule.c | |
parent | 5735bf5e6ab4da347b601d4b85c09c5c701dc002 (diff) |
Add iterator for git_index object
The index iterator could previously only be created from a repo
object, but this allows creating an iterator from a `git_index`
object instead (while keeping, though renaming, the old function).
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 1bd8c42da..527d9e453 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1118,7 +1118,7 @@ static int load_submodule_config_from_index( git_iterator *i; const git_index_entry *entry; - if ((error = git_iterator_for_index(&i, repo)) < 0) + if ((error = git_iterator_for_repo_index(&i, repo)) < 0) return error; error = git_iterator_current(i, &entry); |