rev-parse: add `--exclude-hidden=` option
commit5ff36c9b6bff6e0607ad50d212762ea019c85380
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Nov 2022 05:47:00 +0000 (17 06:47 +0100)
committerTaylor Blau <me@ttaylorr.com>
Thu, 17 Nov 2022 21:22:52 +0000 (17 16:22 -0500)
treea7956c6fcda31c0d737414de53f8bd1c962c4861
parent8c1bc2a71a7680161532e5eabf4dbfbc81dd07be
rev-parse: add `--exclude-hidden=` option

Add a new `--exclude-hidden=` option that is similar to the one we just
added to git-rev-list(1). Given a section name `uploadpack` or `receive`
as argument, it causes us to exclude all references that would be hidden
by the respective `$section.hideRefs` configuration.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
t/t6018-rev-list-glob.sh