• L
    Add "get_sha1()" helper function. · 3c249c95
    Linus Torvalds 提交于
    This allows the programs to use various simplified versions of
    the SHA1 names, eg just say "HEAD" for the SHA1 pointed to by
    the .git/HEAD file etc.
    
    For example, this commit has been done with
    
    	git-commit-tree $(git-write-tree) -p HEAD
    
    instead of the traditional "$(cat .git/HEAD)" syntax.
    3c249c95
cat-file.c 888 字节