From: Linus Torvalds Date: Sun, 1 May 2005 23:36:56 +0000 (-0700) Subject: Add "get_sha1()" helper function. X-Git-Tag: v0.99~671 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3c249c950649a37f2871a8b193f01a0640a20aef?hp=3c249c950649a37f2871a8b193f01a0640a20aef Add "get_sha1()" helper function. 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. ---