From: Matthieu Moy Date: Tue, 05 Feb 2008 06:08:17 GMT Subject: Re: [BUG] (minor) "git status ." reports added files as untracked Message-ID: In-Reply-To: <7v7ihkjtvg.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Matthieu Moy 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