Re: [PATCH] Added EXIT STATUS section in git-status documentation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 14, 2008, 23:29 UTC
- Message-ID
- <7vljui1gkl.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <200812150012.14071.nadim@khemir.net>
nadim khemir <nadim@khemir.net> writes:
Show 6 quoted lines
> +EXIT STATUS > +----------- > +The command exits with status 0 if there is a different between the index > +and HEAD. IE, running `git commit`, with the same arguments as your > +'git status' command, would create a new commit. > +
Wording: s/different/difference/
But more importantly, even if there is no difference between the index and HEAD, "git status -a" would say "Ok, you will commit something" if you have modifications to (or removals of) tracked paths. The description in the original you removed was Ok only because it does not talk anything about giving parameters to "git status", but now you are mentioning that case as well, you would need to adjust the description.