From 0d296c57aec3a2c311abc5ebe7d1499bc41bc9df Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 11 Apr 2018 17:21:15 -0700 Subject: refs: allow for_each_replace_ref to handle arbitrary repositories Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- refs.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'refs.h') diff --git a/refs.h b/refs.h index f5ab68c0ed..15f3a91cc4 100644 --- a/refs.h +++ b/refs.h @@ -300,9 +300,7 @@ int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data, int for_each_tag_ref(each_ref_fn fn, void *cb_data); int for_each_branch_ref(each_ref_fn fn, void *cb_data); int for_each_remote_ref(each_ref_fn fn, void *cb_data); -#define for_each_replace_ref(r, fn, cb) \ - for_each_replace_ref_##r(fn, cb) -int for_each_replace_ref_the_repository(each_ref_fn fn, void *cb_data); +int for_each_replace_ref(struct repository *r, each_ref_fn fn, void *cb_data); int for_each_glob_ref(each_ref_fn fn, const char *pattern, void *cb_data); int for_each_glob_ref_in(each_ref_fn fn, const char *pattern, const char *prefix, void *cb_data); -- cgit v1.3