summaryrefslogtreecommitdiff
path: root/include/git2/refs.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-16 02:27:43 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-16 02:27:43 +0200
commit43521d0688c744e98f07f19dd0b15e6b2c763693 (patch)
tree4cc491af488e4cb5094e723a5c35a942a8f54af5 /include/git2/refs.h
parent607d164380313624531a09b31b6c65ac4c670ee7 (diff)
downloadlibgit2-43521d0688c744e98f07f19dd0b15e6b2c763693.tar.gz
refs: Rename git_referece_listcb to _foreach
Same name as `git_config_foreach`
Diffstat (limited to 'include/git2/refs.h')
-rw-r--r--include/git2/refs.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/git2/refs.h b/include/git2/refs.h
index 298c66d51..35c72ac14 100644
--- a/include/git2/refs.h
+++ b/include/git2/refs.h
@@ -299,10 +299,9 @@ GIT_EXTERN(int) git_reference_listall(git_strarray *array, git_repository *repo,
/**
- * List all the references in the repository, calling a custom
- * callback for each one.
+ * Perform an operation on each reference in the repository
*
- * The listed references may be filtered by type, or using
+ * The processed references may be filtered by type, or using
* a bitwise OR of several types. Use the magic value
* `GIT_REF_LISTALL` to obtain all references, including
* packed ones.
@@ -318,7 +317,7 @@ GIT_EXTERN(int) git_reference_listall(git_strarray *array, git_repository *repo,
* @param payload Additional data to pass to the callback
* @return 0 on success; error code otherwise
*/
-GIT_EXTERN(int) git_reference_listcb(git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload);
+GIT_EXTERN(int) git_reference_foreach(git_repository *repo, unsigned int list_flags, int (*callback)(const char *, void *), void *payload);
/** @} */
GIT_END_DECL