From 43521d0688c744e98f07f19dd0b15e6b2c763693 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 16 Jun 2011 02:27:43 +0200 Subject: refs: Rename git_referece_listcb to _foreach Same name as `git_config_foreach` --- include/git2/refs.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include/git2/refs.h') 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 -- cgit v1.2.1