[PATCH 0/1] add: fix pathspec handling when literal filenames match wildcard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes a bug in `git add` where a wildcard pathspec (e.g., 'f*')
fails to expand correctly if a file with the *exact* name ('f*') exists.
Previously, Git would incorrectly add only the literal match on the first
run and skip expanding the wildcard.

With this fix, wildcard expansion behaves consistently even in the presence
of an exact filename match.

To explicitly add the literal file, users should quote the wildcard:
    git add 'f\*'

Thanks you

K Jayatheerth (1):
  add: fix handling literal filenames and wildcards

 dir.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.49.0





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux