Junio C Hamano <gitster@xxxxxxxxx> writes: > Matthieu Moy <Matthieu.Moy@xxxxxxx> 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html