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