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

Re: problems of git-status

From
Junio C Hamano <junkio@cox.net>
Date
Mar 28, 2007, 08:57 UTC
Message-ID
<7vy7lhkanp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<460A2054.20404@gmail.com>
Liu Yubao <yubao.liu@gmail.com> writes:
>    I find "git status" and "git status ." have different output. 

Think of "git status $ANY_ARGUMENTS" a preview of "git commit $ANY_ARGUMENTS". If you have local modifications, "git commit" and "git commit ." would do different things, so corresponding "git status" should give you different output.

By giving "." to git status, the latter form is asking what reminder message you would see in the commit log message buffer if you say "git commit ."

Previous: Liu Yubao
Message 2 of 2 in “problems of git-status”
  1. Liu YubaoMar 28, 2007
  2. Junio C HamanoMar 28, 2007

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.