]> git.ipfire.org Git - thirdparty/git.git/commit
ls-remote: introduce --branches and deprecate --heads
authorJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2024 22:01:44 +0000 (15:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Jun 2024 22:07:08 +0000 (15:07 -0700)
commitb773fb882231cd8fac4ce37ffb5a8b1d985f37ea
tree1f4c95a7d4fb5c3a5502f1a4df3b9ab2e02d5ec2
parenta096e70c78353e338975b880b7468b79b819f291
ls-remote: 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-ls-remote.txt
builtin/ls-remote.c
t/t5512-ls-remote.sh