All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug: Git sometimes disregards wildcards in pathspecs if a file name matches exactly
@ 2025-04-11 19:08 Piotr Siupa
  2025-04-12  1:57 ` K Jayatheerth
  0 siblings, 1 reply; 5+ messages in thread
From: Piotr Siupa @ 2025-04-11 19:08 UTC (permalink / raw)
  To: git

Hi! I think I've found a bug in the command "git add".
It can be reproduced in a fresh repository by running:

git init
touch 'foo' 'f*'
git add 'f*'

The last command should add both files "f*" and "foo" to the index but
it adds only "f*".
Running it the second time works as expected. (It adds "foo" on the
second attempt.)

I'm using Git 2.43.2. The current "next" (2.49.0.805.g082f7c87e0)
seems to have the same behavior if I'm testing it correctly.

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

end of thread, other threads:[~2025-04-12  9:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 19:08 Bug: Git sometimes disregards wildcards in pathspecs if a file name matches exactly Piotr Siupa
2025-04-12  1:57 ` K Jayatheerth
2025-04-12  3:00   ` JAYATHEERTH K
2025-04-12  6:27     ` Jeff King
2025-04-12  9:29       ` JAYATHEERTH K

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.