]> git.ipfire.org Git - thirdparty/git.git/commit - cat-file.c
Make "cat-file" output the file contents to stdout.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 16:16:38 +0000 (09:16 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 8 Apr 2005 16:16:38 +0000 (09:16 -0700)
commitbf0c6e839c692142784caf07b523cd69442e57a5
tree82e9dc75087c715ef4a9da6fc89674aa74efee1c
parente497ea2a9b6c378f01d092c210af20cbee762475
Make "cat-file" output the file contents to stdout.

New syntax: "cat-file -t <sha1>" shows the tag, while "cat-file <tag> <sha1>"
outputs the file contents after checking that the supplied tag matches.
cache.h
cat-file.c