Package: git-core
Version: 1:1.5.3.8-1
Severity: minor

        Hi!

 I really wonder why "git <command> -h" depends on being inside a
repository. I noticed it with "git diff -h" (add, branch does that, too):

#v+
~/git> git tag -h
usage: git-tag [-n [<num>]] -l [<pattern>] | [-a | -s | -u <key-id>] [-f | -d | 
-v] [-m <msg> | -F <file>] <tagname> [<head>]
~/git> cd
~> git tag -h
fatal: Not a git repository
~>
#v-

 Though, it seems to be inconsistent in that anyway: "git config -h"
doesn't write anything, "git bisect -h" does give long help instead of
just synopsis, "git gui -h" tries to start, "git diff -h" even opens the
pager but writes to stdout "error: invalid option: -h" - all together
pretty inconsistent and confusing ...

 Would be nice to get that fixed, I really want to see just the short
usage message, git help <command> works as expected independent on where
it is called from.

 So long,
Rhonda



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to