• L
    Make "cat-file" use "read_object_with_reference()" · 11e7d5c5
    Linus Torvalds 提交于
    This means that you can take a tag object, and do
    
    	git-cat-file commit tagname
    
    and it will cat the commit that the tag points to. Or you can
    cat the tree that a commit (or tag) points to.
    
    It still gives the old behaviour if you just give it the
    original type, ie if you want to see the tag object itself,
    you'd do
    
    	git-cat-file -t tagname
    
    and you'd get the expected tag output.
    11e7d5c5
cat-file.c 898 字节