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

Re: [BUG] git-add doesn't apply filepatterns to tracked files

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 8, 2010, 23:07 UTC
Message-ID
<7vipz3j228.fsf@alter.siamese.dyndns.org>
In-Reply-To
<47FCD78C-5D8C-4FA5-88DC-26FDCC7361AD@sb.org>
Kevin Ballard <kevin@sb.org> writes:
> It seems that git-add doesn't match filepatterns against tracked files,

This is an issue known for a long time (and the one I had been bitching about every time I had a chance). Tracked ones obey diff-index pathspec rules (leading path match only) while untracked ones use gitignore pathspec rules.

Previous: Kevin BallardNext: Kevin Ballard
Message 2 of 3 in “[BUG] git-add doesn't apply filepatterns to tracked files”
  1. Kevin BallardDec 8, 2010
  2. Junio C HamanoDec 8, 2010
  3. Kevin BallardDec 8, 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.