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

Re: Weird behaviour of git status

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Jan 16, 2009, 13:17 UTC
Message-ID
<bd6139dc0901160517ra26d69bw661816faaa91b339@mail.gmail.com>
In-Reply-To
<2A29AD77-2B8D-4491-92C1-62F5FFFBB00F@wincent.com>
On Fri, Jan 16, 2009 at 10:44, Wincent Colaiuta <win@wincent.com> wrote:
Show 5 quoted lines
> "git status" shows you what would be committed if you ran "git commit" with
> the same parameters. So in your example, the output for "git status ." is
> exactly as you would expect.
>
> This is stated in the man page.

This is one of the first things I stumbled on when I started using git. I often times wanted to do "git status -- pathspec" to see only what changed in a certain directory, rather than what would be committed if only the contents of that directory is committed.

-- 
Cheers,

Sverre Rabbelier
Previous: Wincent Colaiuta
Message 3 of 3 in “Weird behaviour of git status”
  1. Nicolas Morey-ChaisemartinJan 16, 2009
  2. Wincent ColaiutaJan 16, 2009
  3. Sverre RabbelierJan 16, 2009

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.