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

Re: [BUG] (minor) "git status ." reports added files as untracked

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Feb 5, 2008, 06:08 UTC
Message-ID
<vpqy7a00wby.fsf@bauges.imag.fr>
In-Reply-To
<7v7ihkjtvg.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>
>> Indeed, I've always considered the fact that "git status ." reports
>> untracked files outside the current directory as a bug, but I'm not
>> sure whether this is intended or not.
>
> It is intended.
>
> "git status $args" was designed as "show me what happens if I
> ran 'git commit $args' now", and because a commit is a whole
> tree operation, 

I don't understand the point: "git commit" doesn't care about untracked files. So if "git status" would really only "show me what happens if I run git commit now", it wouldn't show untracked files, at all.

Showing untracked files is status is IMHO a good thing, it helps me to see if I forget to "git add" something. But if I explicitely ask for a limited commit, I really mean I don't care about what happens outside the directory I'm commiting.

-- 
Matthieu
Previous: Junio C HamanoNext: Eddy Petrișor
Message 3 of 4 in “[BUG] (minor) "git status ." reports added files as untracked”
  1. Matthieu MoyFeb 4, 2008
  2. Junio C HamanoFeb 4, 2008
  3. Matthieu MoyFeb 5, 2008
  4. Eddy PetrișorMar 26, 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.