Skip to content
  • Ann T Ropea's avatar
    checkout: describe_detached_head: remove ellipsis after committish · ca69d4d5
    Ann T Ropea authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarAnn T Ropea <bedhanger@gmx.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ca69d4d5