aboutsummaryrefslogtreecommitdiff
path: root/builtin/show-ref.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-05-07 09:11:44 +0200
committerJunio C Hamano <gitster@pobox.com>2024-05-07 10:06:59 -0700
commit54876c6dfba771612245cf57b2217c5b00ced29d (patch)
treecaa48e88b17a4f00193972a190f1040d98a936e3 /builtin/show-ref.c
parent39a9ef8fc4e7dbcb078369f9c2560ebc69bbbb1d (diff)
downloadgit-54876c6dfba771612245cf57b2217c5b00ced29d.tar.xz
refs: add `exclude_patterns` parameter to `for_each_fullref_in()`
The `for_each_fullref_in()` function is supposedly the ref-store-less equivalent of `refs_for_each_fullref_in()`, but the latter has gained a new parameter `exclude_patterns` over time. Bring these two functions back in sync again by adding the parameter to the former function, as well. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/show-ref.c')
-rw-r--r--builtin/show-ref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/show-ref.c b/builtin/show-ref.c
index 1c15421e60..3c521dbfd4 100644
--- a/builtin/show-ref.c
+++ b/builtin/show-ref.c
@@ -208,9 +208,9 @@ static int cmd_show_ref__patterns(const struct patterns_options *opts,
head_ref(show_ref, &show_ref_data);
if (opts->heads_only || opts->tags_only) {
if (opts->heads_only)
- for_each_fullref_in("refs/heads/", show_ref, &show_ref_data);
+ for_each_fullref_in("refs/heads/", NULL, show_ref, &show_ref_data);
if (opts->tags_only)
- for_each_fullref_in("refs/tags/", show_ref, &show_ref_data);
+ for_each_fullref_in("refs/tags/", NULL, show_ref, &show_ref_data);
} else {
for_each_ref(show_ref, &show_ref_data);
}