Git development
 help / color / mirror / Atom feed
* Q: .gitignore and asterisk "*"
@ 2026-10-30 10:46 Windl, Ulrich
  2026-10-30 16:59 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Windl, Ulrich @ 2026-10-30 10:46 UTC (permalink / raw)
  To: git@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Hi!

I think the documentation for gitignore(5) could be improved regarding "*":
It's nor clear whether "*" matches an empty string.
So when I have
foo.log
foo.msg
foo.sh
foo-whatever.log
foo-whetever.msg
Would e.g. "foo*.log" cover all the logs?

The manual says:
       •   An asterisk "*" matches anything except a slash. The character "?"
           matches any one character except "/". The range notation, e.g.
           [a-zA-Z], can be used to match one of the characters in a range.
           See fnmatch(3) and the FNM_PATHNAME flag for a more detailed
           description.

Kind regards,
Ulrich Windl


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5581 bytes --]

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

end of thread, other threads:[~2026-11-03 22:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 10:46 Q: .gitignore and asterisk "*" Windl, Ulrich
2026-10-30 16:59 ` Junio C Hamano
2026-11-03  7:33   ` Tuomas Ahola
2026-11-03 12:00     ` [EXT] " Windl, Ulrich
2026-11-03 17:13     ` Junio C Hamano
2026-11-03 17:29       ` Tuomas Ahola
2026-11-03 22:40   ` [PATCH v2] gitignore: rewrite wildcard description 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