diff options
| author | Taylor Blau <me@ttaylorr.com> | 2023-07-10 17:12:36 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-07-10 14:48:56 -0700 |
| commit | e6bf24d39a6a85e0a2257f22bffc09b9df749b4a (patch) | |
| tree | 8916f2c417f2b989ff713bd74d9f978457db2161 /refs/files-backend.c | |
| parent | revision.h: store hidden refs in a `strvec` (diff) | |
| download | git-e6bf24d39a6a85e0a2257f22bffc09b9df749b4a.tar.gz git-e6bf24d39a6a85e0a2257f22bffc09b9df749b4a.zip | |
refs.h: let `for_each_namespaced_ref()` take excluded patterns
A future commit will want to call `for_each_namespaced_ref()` with
a list of excluded patterns.
We could introduce a variant of that function, say,
`for_each_namespaced_ref_exclude()` which takes the extra parameter, and
reimplement the original function in terms of that. But all but one
caller (in `http-backend.c`) will supply the new parameter, so add the
new parameter to `for_each_namespaced_ref()` itself instead of
introducing a new function.
For now, supply NULL for the list of excluded patterns at all callers to
avoid changing behavior, which we will do in a future change.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/files-backend.c')
0 files changed, 0 insertions, 0 deletions
