git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Mark LodatoNext: Christian Couder
Message 2 of 3 in “[BUG] bugs in clean, status, bisect, and send-email”
  1. Mark LodatoFeb 25, 2010
  2. Junio C HamanoFeb 25, 2010
  3. Christian CouderFeb 25, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.