threads / discuss / 13226

Wrong help text on git status -h ?

Subject: Wrong help text on git status -h ?

## tl;dr

3 messages between Apr 23, 2008 and May 13, 2008.

replies: 2people: 2as markdown or json

Stefan Näwe· Apr 23, 2008, 12:54 UTC · lore
Hi all.
This is what I get:

~/src/git$ ./git version git version 1.5.5.1.67.gbdb8

~/src/git$ ./git status -h usage: git-status [options] [--] <filepattern>...

    -q, --quiet           be quiet
    -v, --verbose         be verbose
Commit message options
   [....]
Commit contents options
   [....]
(The [....] is deleted by me for this post!).

Getting help for commit on 'git status -h' can't be right, can it ? Or am I missing something?

Thanks, Stefan

Matthieu Moy· Apr 23, 2008, 16:00 UTC · re: Stefan Näwe · lore

Re: Wrong help text on git status -h ?

Stefan Näwe <stefan.naewe+git@gmail.com> writes:
> Getting help for commit on 'git status -h' can't be right, can it ?
> Or am I missing something?
I'd say: both.

git status could have been spelled "git commit --dry-run", they're actually the same command, but "git status" stops before launching the editor and doing the actual commit. So, they take the exact same set of options.

That said, in an ideal world, "git status -h" would mention that the commit message options are ignored with "git status".

-- 
Matthieu
Stefan Näwe· May 13, 2008, 11:09 UTC · re: Matthieu Moy · lore

Re: Wrong help text on git status -h ?

Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:
Show 7 quoted lines
> 
> Stefan Näwe <stefan.naewe+git <at> gmail.com> writes:
> 
> > Getting help for commit on 'git status -h' can't be right, can it ?
> > Or am I missing something?
> 
> I'd say: both.
Well, I can't be *that* wrong:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=478814
 
Show 8 quoted lines
> git status could have been spelled "git commit --dry-run", they're
> actually the same command, but "git status" stops before launching the
> editor and doing the actual commit. So, they take the exact same set
> of options.
> 
> That said, in an ideal world, "git status -h" would mention that the
> commit message options are ignored with "git status".
> 
Regards,
   Stefan

← back to recent threads