diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-23 12:59:48 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:21:19 -0800 |
| commit | 4091d2989353aaf14080ee64ee2e94b60ceaf18d (patch) | |
| tree | 978744ce88f964d301279f07552e28de8cf35724 /refs.c | |
| parent | 5ef6d593f18ac6b1e7540eed45f5d795d5a82faa (diff) | |
| download | git-4091d2989353aaf14080ee64ee2e94b60ceaf18d.tar.xz | |
refs: replace `refs_for_each_glob_ref_in()`
Replace calls to `refs_for_each_glob_ref_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 'refs.c')
| -rw-r--r-- | refs.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -607,17 +607,6 @@ void normalize_glob_ref(struct string_list_item *item, const char *prefix, strbuf_release(&normalized_pattern); } -int refs_for_each_glob_ref_in(struct ref_store *refs, refs_for_each_cb cb, - const char *pattern, const char *prefix, void *cb_data) -{ - struct refs_for_each_ref_options opts = { - .pattern = pattern, - .prefix = prefix, - .trim_prefix = prefix ? strlen(prefix) : 0, - }; - return refs_for_each_ref_ext(refs, cb, cb_data, &opts); -} - int refs_for_each_glob_ref(struct ref_store *refs, refs_for_each_cb cb, const char *pattern, void *cb_data) { |
