builtin/rev-parse: introduce `--show-ref-format` flag
commit3c4a5318afb4978a037c83ccd9bbeb870b3f0543
authorPatrick Steinhardt <ps@pks.im>
Fri, 29 Dec 2023 07:27:00 +0000 (29 08:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jan 2024 17:24:48 +0000 (2 09:24 -0800)
tree9414b55f9bc66507e0cc70431418b556549ac113
parent58aaf59133b4167aefaab6083e80deb369894f79
builtin/rev-parse: introduce `--show-ref-format` flag

Introduce a new `--show-ref-format` to git-rev-parse(1) that causes it
to print the ref format used by a repository.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c
t/t1500-rev-parse.sh