Skip to content
  • Junio C Hamano's avatar
    t1506: rev-parse A..B and A...B · 9f0be821
    Junio C Hamano authored
    
    
    Because these constructs can be used to parse user input to be
    passed to rev-list --objects, e.g.
    
    	range=$(git rev-parse v1.0..v2.0) &&
    	git rev-list --objects $range | git pack-objects --stdin
    
    the endpoints (v1.0 and v2.0 in the example) are shown without
    peeling them to underlying commits, even when they are annotated
    tags.  Make sure it stays that way.
    
    While at it, ensure "rev-parse A...B" also keeps the endpoints A and
    B unpeeled, even though the negative side (i.e. the merge-base
    between A and B) has to become a commit.
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9f0be821