author | H. Peter Anvin <hpa@zytor.com> | |
Sun, 4 Dec 2005 01:57:48 +0000 (17:57 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 4 Dec 2005 07:07:17 +0000 (23:07 -0800) | ||
commit | 7950571ad75c1c97e5e53626d8342b01b167c790 | |
tree | 02a67856e4edb0254fbaa229feec55221573822a | tree | snapshot |
parent | e40b61fb6bd2e0ed2dc4799096fcf4c828c28d6d | commit | diff |
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>
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 | diff | blob | history | |
cat-file.c | diff | blob | history |