git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: nadim khemir
Message 2 of 2 in “Added EXIT STATUS section in git-status documentation”
  1. Added EXIT STATUS section in git-status documentationnadim khemir, Dec 14, 2008
  2. Junio C HamanoDec 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.