Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 5/6] gitignore: do not do basename match with patterns that have '**'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:56

Nguyễn Thái Ngọc Duy [off-list ref] writes:
-		if (!strchr(p, '/'))
+		if (!strchr(p, '/') && !strstr(p, "**"))
Doesn't wildmatch allow these to be quoted, similar to the way usual
glob works, e.g.

	$ >ff
        $ >\?f
        $ echo ??
        ?f ff
        $ echo \?f
        ?f

Even If wildmatch out-of-the-box doesn't, I would assume that we
would want to fix it so that it does.  And if that is the case,
we would want to be careful about "two/asterisks\**in path" to
avoid triggering this logic, no?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help