A few more options for git-cat-file
authorH. Peter Anvin <hpa@zytor.com>
Sun, 4 Dec 2005 01:57:48 +0000 (17:57 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 4 Dec 2005 07:07:17 +0000 (23:07 -0800)
commit7950571ad75c1c97e5e53626d8342b01b167c790
tree02a67856e4edb0254fbaa229feec55221573822a
parente40b61fb6bd2e0ed2dc4799096fcf4c828c28d6d
A few more options for git-cat-file

This adds '-e' option to git-cat-file, to test for the existence
of the object.

This also cleans up the option-parsing in git-cat-file slightly.

[jc: HPA version had -n option which did rev-parse --verify; the
real value of this patch is the option parsing cleanup.]

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-cat-file.txt
cat-file.c