Re: [BUG] bugs in clean, status, bisect, and send-email
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 25, 2010, 04:09 UTC
- Message-ID
- <7v1vgaq7ld.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <ca433831002241928hef29dadu39f93bc1a8460331@mail.gmail.com>
Mark Lodato <lodatom@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.