Git development
 help / color / mirror / Atom feed
* [BUG] git-add doesn't apply filepatterns to tracked files
@ 2010-12-08 23:01 Kevin Ballard
  2010-12-08 23:07 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Ballard @ 2010-12-08 23:01 UTC (permalink / raw)
  To: git list

Ran across a rather bizarre bug today while trying to help someone in #git.
It seems that git-add doesn't match filepatterns against tracked files,
only against untracked files. Other tested commands (such as git-rm and
git-ls-files) are happy to match tracked files, but not git-add.

% git --version
git version 1.7.3.3.576.gd872
% ls -a
./       ../      .git/    bar.txt  foo.txt
% git status --short
 M foo.txt
?? bar.txt
% git add '*.txt'
% git status --short
A  bar.txt
 M foo.txt

There are no .gitignores in play here.

I haven't had time to investigate the source yet, as I'm still at work.

-Kevin Ballard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-08 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 23:01 [BUG] git-add doesn't apply filepatterns to tracked files Kevin Ballard
2010-12-08 23:07 ` Junio C Hamano
2010-12-08 23:27   ` Kevin Ballard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox