]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: plumb `exclude_patterns` argument throughout
authorTaylor Blau <me@ttaylorr.com>
Mon, 10 Jul 2023 21:12:22 +0000 (17:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2023 21:48:55 +0000 (14:48 -0700)
commitb269ac53c07aa46d5a88d05dac8216d189e69a50
treeb1cfa35537b5721776c98277024291fa7352aae7
parent8255dd8a3dce094129690d17595dc822171d1e61
refs: plumb `exclude_patterns` argument throughout

The subsequent patch will want to access an optional `excluded_patterns`
array within `refs/packed-backend.c` that will cull out certain
references matching any of the given patterns on a best-effort basis.

To do so, the refs subsystem needs to be updated to pass this value
across a number of different locations.

Prepare for a future patch by introducing this plumbing now, passing
NULLs at top-level APIs in order to make that patch less noisy and more
easily readable.

Signed-off-by: Taylor Blau <me@ttaylorr.co>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ls-refs.c
ref-filter.c
refs.c
refs.h
refs/debug.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
revision.c