From: Junio C Hamano Date: Thu, 25 Feb 2010 04:09:50 GMT Subject: Re: [BUG] bugs in clean, status, bisect, and send-email Message-ID: <7v1vgaq7ld.fsf@alter.siamese.dyndns.org> In-Reply-To: Mark Lodato writes: > 2. git-status globs only match untracked files, not staged or unmodified I am reasonably sure that this is related to a n issue we discussed on "git add" vs "git add -u" recently. In short, you cannot expect glob style pathspecs to work for an operation that involves running diff internally. You can guess that "To be committed" is computed by internally running "diff --cached". Currently globbing style pathspec are supported as an added bonus to only some commands (e.g. "grep", "ls-files", "add" but not "add -u"). You can also guess that "Untracked" is computed by internally running "ls-files". In the meantime, limit yourself to leading path style pathspecs.