diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-23 12:59:51 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:21:19 -0800 |
| commit | 1dd4f1e43f8f11ebb13c1b9edbd91219a134443d (patch) | |
| tree | 710bfca410849ab8e8894fb38977c13013438127 /t | |
| parent | 96c35a9ba5f1b5afac1e30ca93815dcd540d8b16 (diff) | |
| download | git-1dd4f1e43f8f11ebb13c1b9edbd91219a134443d.tar.xz | |
refs: replace `refs_for_each_fullref_in()`
Replace calls to `refs_for_each_fullref_in()` with the newly introduced
`refs_for_each_ref_ext()` function.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rw-r--r-- | t/helper/test-ref-store.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c index a2ef1b6949..74edf2029a 100644 --- a/t/helper/test-ref-store.c +++ b/t/helper/test-ref-store.c @@ -173,10 +173,12 @@ static int cmd_for_each_ref(struct ref_store *refs, const char **argv) static int cmd_for_each_ref__exclude(struct ref_store *refs, const char **argv) { const char *prefix = notnull(*argv++, "prefix"); - const char **exclude_patterns = argv; + struct refs_for_each_ref_options opts = { + .prefix = prefix, + .exclude_patterns = argv, + }; - return refs_for_each_fullref_in(refs, prefix, exclude_patterns, each_ref, - NULL); + return refs_for_each_ref_ext(refs, each_ref, NULL, &opts); } static int cmd_resolve_ref(struct ref_store *refs, const char **argv) |
