diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:27:43 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:27:43 +0200 |
| commit | 43521d0688c744e98f07f19dd0b15e6b2c763693 (patch) | |
| tree | 4cc491af488e4cb5094e723a5c35a942a8f54af5 /src/refs.c | |
| parent | 607d164380313624531a09b31b6c65ac4c670ee7 (diff) | |
| download | libgit2-43521d0688c744e98f07f19dd0b15e6b2c763693.tar.gz | |
refs: Rename git_referece_listcb to _foreach
Same name as `git_config_foreach`
Diffstat (limited to 'src/refs.c')
| -rw-r--r-- | src/refs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/refs.c b/src/refs.c index 555650a4c..2aedb852a 100644 --- a/src/refs.c +++ b/src/refs.c @@ -1086,7 +1086,7 @@ static int reference_available(git_repository *repo, const char *ref, const char git_vector_insert(&refs, (void *)ref); git_vector_insert(&refs, (void *)old_ref); - error = git_reference_listcb(repo, GIT_REF_LISTALL, _reference_available_cb, (void *)&refs); + error = git_reference_foreach(repo, GIT_REF_LISTALL, _reference_available_cb, (void *)&refs); git_vector_free(&refs); @@ -1573,7 +1573,7 @@ int git_reference_packall(git_repository *repo) return packed_write(repo); } -int git_reference_listcb(git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload) +int git_reference_foreach(git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload) { int error; struct dirent_list_data data; @@ -1625,7 +1625,7 @@ int git_reference_listall(git_strarray *array, git_repository *repo, unsigned in if (git_vector_init(&ref_list, 8, NULL) < GIT_SUCCESS) return GIT_ENOMEM; - error = git_reference_listcb(repo, list_flags, &cb__reflist_add, (void *)&ref_list); + error = git_reference_foreach(repo, list_flags, &cb__reflist_add, (void *)&ref_list); if (error < GIT_SUCCESS) { git_vector_free(&ref_list); |
