summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-04-12 00:21:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-12 02:38:56 (GMT)
commit0d296c57aec3a2c311abc5ebe7d1499bc41bc9df (patch)
tree8ba4e30ae980a0d34719725ab03c7ad2f38e5db8 /refs.h
parent64a741619d27ede27788d2d444257635f4af8ffd (diff)
downloadgit-0d296c57aec3a2c311abc5ebe7d1499bc41bc9df.zip
git-0d296c57aec3a2c311abc5ebe7d1499bc41bc9df.tar.gz
git-0d296c57aec3a2c311abc5ebe7d1499bc41bc9df.tar.bz2
refs: allow for_each_replace_ref to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/refs.h b/refs.h
index f5ab68c..15f3a91 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);