]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
revision: add new parameter to exclude hidden refs
authorPatrick Steinhardt <ps@pks.im>
Thu, 17 Nov 2022 05:46:56 +0000 (06:46 +0100)
committerTaylor Blau <me@ttaylorr.com>
Thu, 17 Nov 2022 21:22:52 +0000 (16:22 -0500)
commit8c1bc2a71a7680161532e5eabf4dbfbc81dd07be
tree2ca1424cd6beaff3d8067b7ff07f0e027d734074
parent1e9f273ac06f7826ee3ec5a8da5d03bf07c14389
revision: add new parameter to exclude hidden refs

Users can optionally hide refs from remote users in git-upload-pack(1),
git-receive-pack(1) and others via the `transfer.hideRefs`, but there is
not an easy way to obtain the list of all visible or hidden refs right
now. We'll require just that though for a performance improvement in our
connectivity check.

Add a new option `--exclude-hidden=` that excludes any hidden refs from
the next pseudo-ref like `--all` or `--branches`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Documentation/rev-list-options.txt
builtin/rev-list.c
revision.c
revision.h
t/t6021-rev-list-exclude-hidden.sh [new file with mode: 0755]