]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Add "get_sha1()" helper function.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 23:36:56 +0000 (16:36 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 23:36:56 +0000 (16:36 -0700)
commit3c249c950649a37f2871a8b193f01a0640a20aef
tree8ce5c715973ddb7ed553be593c090de979c4a5ce
parent68849b544258cafdf42f3ebe9772ee7a346f7147
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.
16 files changed:
cache.h
cat-file.c
commit-tree.c
convert-cache.c
diff-cache.c
diff-tree.c
export.c
fsck-cache.c
ls-tree.c
merge-base.c
read-tree.c
rev-list.c
rev-tree.c
sha1_file.c
tar-tree.c
unpack-file.c