diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-23 12:59:50 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-23 13:21:19 -0800 |
| commit | 96c35a9ba5f1b5afac1e30ca93815dcd540d8b16 (patch) | |
| tree | 430eccac9fc2a8558e15f4ad56c788273c6f099b /http-backend.c | |
| parent | 3fc1ad03c6243b44c2dcab480acaced44921b1c5 (diff) | |
| download | git-96c35a9ba5f1b5afac1e30ca93815dcd540d8b16.tar.xz | |
refs: replace `refs_for_each_namespaced_ref()`
Replace calls to `refs_for_each_namespaced_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 'http-backend.c')
| -rw-r--r-- | http-backend.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/http-backend.c b/http-backend.c index 0122146df6..1a171c5c5a 100644 --- a/http-backend.c +++ b/http-backend.c @@ -565,9 +565,13 @@ static void get_info_refs(struct strbuf *hdr, char *arg UNUSED) run_service(argv, 0); } else { + struct refs_for_each_ref_options opts = { + .namespace = get_git_namespace(), + }; + select_getanyfile(hdr); - refs_for_each_namespaced_ref(get_main_ref_store(the_repository), - NULL, show_text_ref, &buf); + refs_for_each_ref_ext(get_main_ref_store(the_repository), + show_text_ref, &buf, &opts); send_strbuf(hdr, "text/plain", &buf); } strbuf_release(&buf); |
