hash-object: -- and --help
authorJunio C Hamano <junkio@cox.net>
Tue, 6 Dec 2005 06:29:05 +0000 (22:29 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 6 Dec 2005 06:29:05 +0000 (22:29 -0800)
commit9c2e7c0ca240e1508871cd22f2ee380f52d69a53
tree654f05228ce081d14bfb7c42f2cc1358a81e3e4f
parent61f693bd5a2ab4d830aad6fce0a1c70863f38009
hash-object: -- and --help

It was cumbersome to feed hash-object the file '-t' (you could
have said "./-t", though).  Teach it '--' that terminates the
option list, like everybody else.  There is no way to extract
usage string from the command either, so teach it "--help" as
well.

Signed-off-by: Junio C Hamano <junkio@cox.net>
hash-object.c