.gitattributes pattern syntax is supposed to be the same as .gitignore
(except a few things that do not make sense in attr context, but
that's a different issue). .gitignore uses fnmatch() as the matching
machinery and "\" is accepted as an escape code. In theory the pattern
'foo\ bar' should match
On Sat, Oct 6, 2012 at 2:54 PM, Junio C Hamano wrote:
> Shouldn't we do the same for quoting fnmatch(3) metacharacters? To
> match a path component 'a' followed by an asterisk followed by 'b',
> you could then write 'a\*b'. Same for quoting the backslash itself.
I think my patch does that too.
Nguyễn Thái Ngọc Duy writes:
> .gitattributes pattern syntax is supposed to be the same as .gitignore
> (except a few things that do not make sense in attr context, but
> that's a different issue). .gitignore uses fnmatch() as the matching
> machinery and "\" is accepted as an escape code. In th
.gitattributes pattern syntax is supposed to be the same as .gitignore
(except a few things that do not make sense in attr context, but
that's a different issue). .gitignore uses fnmatch() as the matching
machinery and "\" is accepted as an escape code. In theory the pattern
'foo\ bar' should match
4 matches
Mail list logo