• Doug Bell's avatar
    show-ref: make --head always show the HEAD ref · 3f3d0cea
    Doug Bell authored
    The docs seem to say that doing
    
    	git show-ref --head --tags
    
    would show both the HEAD ref and all the tag refs. However, doing
    both --head and either of --tags or --heads would filter out the HEAD
    ref.
    
    Also update the documentation to describe the new behavior and add
    tests for the show-ref command.
    
    [jc: Doug did proofread the tests, but it was done by me and bugs in
    it are mine].
    Signed-off-by: default avatarDoug Bell <madcityzen@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3f3d0cea
t1403-show-ref.sh 3.8 KB