Gmane
Picon Picon Favicon Gravatar
From: Junio C Hamano <gitster <at> pobox.com>
Subject: Re: [BUG] bugs in clean, status, bisect, and send-email
Newsgroups: gmane.comp.version-control.git
Date: 2010-02-25 04:09:50 GMT (1 year, 50 weeks, 16 hours and 5 minutes ago)
Mark Lodato <lodatom <at> gmail.com> 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.