]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/user-manual.txt
checkout: describe_detached_head: remove ellipsis after committish
authorAnn T Ropea <bedhanger@gmx.de>
Wed, 6 Dec 2017 00:20:42 +0000 (01:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Dec 2017 15:32:40 +0000 (07:32 -0800)
commitca69d4d5b14245c9ba4535212c4f4a0621e78ffa
tree66a56fe0f738068bcfd6c63c8ce6d89cde27b225
parenta2cd709de314a7bfa038e14fd36f1d21077b4173
checkout: describe_detached_head: remove ellipsis after committish

We do not want an ellipsis displayed following an (abbreviated) SHA-1
value.

The days when this was necessary to indicate the truncation to
lower-level Git commands and/or the user are bygone.

However, to ease the transition, the ellipsis will still be printed if
the user sets the environment variable GIT_PRINT_SHA1_ELLIPSIS to "yes".

Correct documentation with respect to what describe_detached_head prints
when GIT_PRINT_SHA1_ELLIPSIS is not set as indicated above.

Add tests for the old and new behaviour.

Signed-off-by: Ann T Ropea <bedhanger@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/user-manual.txt
builtin/checkout.c
t/t2020-checkout-detach.sh