]> git.ipfire.org Git - thirdparty/git.git/commit
show-ref: introduce --branches and deprecate --heads
authorJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2024 22:01:45 +0000 (15:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2024 22:07:08 +0000 (15:07 -0700)
commit607c3d372ef89cf16874c288c60423587286d182
tree37ad93d8f07b1b3b45ef00f6da5e1b385495c5f1
parentb773fb882231cd8fac4ce37ffb5a8b1d985f37ea
show-ref: introduce --branches and deprecate --heads

We call the tips of branches "heads", but this command calls the
option to show only branches "--heads", which confuses the branches
themselves and the tips of branches.

Straighten the terminology by introducing "--branches" option that
limits the output to branches, and deprecate "--heads" option used
that way.

We do not plan to remove "--heads" or "-h" yet; we may want to do so
at Git 3.0, in which case, we may need to start advertising upcoming
removal with an extra warning when they are used.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-show-ref.txt
builtin/show-ref.c
t/t1403-show-ref.sh