git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* gitignore pattern matching issue with Windows
@ 2025-07-28 21:09 TDD Guru
  2025-07-28 22:36 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: TDD Guru @ 2025-07-28 21:09 UTC (permalink / raw)
  To: git

  Git does not seem to properly handle the pattern [AB] but it does handle [ab].

Here is the demonstration of the bug:

C:\gitbug>git --version
git version 2.50.1.windows.1

C:\gitbug>echo [ab] > .gitignore

C:\gitbug>type .gitignore
[ab]

C:\gitbug>git check-ignore -v a
.gitignore:1:[ab]       a

C:\gitbug>git check-ignore -v b
.gitignore:1:[ab]       b

C:\gitbug>git check-ignore -v A
.gitignore:1:[ab]       A

C:\gitbug>git check-ignore -v B
.gitignore:1:[ab]       B

C:\gitbug>echo [AB] > .gitignore

C:\gitbug>type .gitignore
[AB]

C:\gitbug>git check-ignore -v a

C:\gitbug>git check-ignore -v b

C:\gitbug>git check-ignore -v A

C:\gitbug>git check-ignore -v B

C:\gitbug>git config core.ignorecase
true

C:\gitbug>ver

Microsoft Windows [Version 10.0.19045.6093]

C:\gitbug>

Rex McCarthy

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

end of thread, other threads:[~2025-07-28 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-28 21:09 gitignore pattern matching issue with Windows TDD Guru
2025-07-28 22:36 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).