Using Git (1.7.7.6), it appears that if I run "git diff" in a
directory that is not part of a Git working copy, it produces this
error message:

    $ git diff
    usage: git diff [--no-index] <path> <path>
    $ 

1) This message doesn't tell the user what went wrong.  (Indeed,
invoking "git diff" with no arguments is valid in a working copy.)

2) The usage message is incorrect, in that the manual page lists four
fundamental invocation formats:

       git diff [options] [<commit>] [--] [<path>...]
       git diff [options] --cached [<commit>] [--] [<path>...]
       git diff [options] <commit> <commit> [--] [<path>...]
       git diff [options] [--no-index] [--] <path> <path>

Am I correct here?

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to