Let 'git <command> -h' show usage without a git dir
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 9 Nov 2009 15:05:01 +0000 (09:05 -0600)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Nov 2009 20:00:21 +0000 (12:00 -0800)
commit99caeed05d3e89176d352104a2b70a77aa7e5d81
treef65515f8b4302877d661176266cd6bf9a75e5a53
parent548d3464dc446db58a8fc8f7a8cc6cfb2d683faa
Let 'git <command> -h' show usage without a git dir

There is no need for "git <command> -h" to depend on being inside
a repository.

Reported by Gerfried Fuchs through http://bugs.debian.org/462557

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c
builtin-mv.c
builtin-read-tree.c
builtin-reflog.c
builtin-rerere.c
git.c
index-pack.c
pack-redundant.c