diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-23 12:59:49 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:21:19 -0800 |
| commit | 3fc1ad03c6243b44c2dcab480acaced44921b1c5 (patch) | |
| tree | fa51b6f8eaad4f2b5efa12cab1e2335e52419e5a /notes.c | |
| parent | 4091d2989353aaf14080ee64ee2e94b60ceaf18d (diff) | |
| download | git-3fc1ad03c6243b44c2dcab480acaced44921b1c5.tar.xz | |
refs: replace `refs_for_each_glob_ref()`
Replace calls to `refs_for_each_glob_ref()` 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 'notes.c')
| -rw-r--r-- | notes.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -952,8 +952,11 @@ void string_list_add_refs_by_glob(struct string_list *list, const char *glob) { assert(list->strdup_strings); if (has_glob_specials(glob)) { - refs_for_each_glob_ref(get_main_ref_store(the_repository), - string_list_add_one_ref, glob, list); + struct refs_for_each_ref_options opts = { + .pattern = glob, + }; + refs_for_each_ref_ext(get_main_ref_store(the_repository), + string_list_add_one_ref, list, &opts); } else { struct object_id oid; if (repo_get_oid(the_repository, glob, &oid)) |
