Re: [PATCH] attr: allow pattern escape using backslashes

2013-02-27 Thread Junio C Hamano
Duy Nguyen writes: > On Sun, Feb 24, 2013 at 4:15 PM, Junio C Hamano wrote: >> Speaking of .gitignore, I recall that there was a hanging discussion >> on allowing a pattern to name the directory that the .gitignore file >> appears in, which I do not think we currently support. With such a >> fe

Re: [PATCH] attr: allow pattern escape using backslashes

2013-02-27 Thread Duy Nguyen
On Sun, Feb 24, 2013 at 4:15 PM, Junio C Hamano wrote: > Speaking of .gitignore, I recall that there was a hanging discussion > on allowing a pattern to name the directory that the .gitignore file > appears in, which I do not think we currently support. With such a > feature, instead of listing "

Re: [PATCH] attr: allow pattern escape using backslashes

2013-02-24 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Patterns in .gitattributes are separated by whitespaces, which makes > it impossible to specify exact spaces in the pattern. '?' can be used > as a workaround, but it matches other characters too. This patch makes > a space following a backslash part of the pattern

[PATCH] attr: allow pattern escape using backslashes

2013-01-04 Thread Nguyễn Thái Ngọc Duy
Patterns in .gitattributes are separated by whitespaces, which makes it impossible to specify exact spaces in the pattern. '?' can be used as a workaround, but it matches other characters too. This patch makes a space following a backslash part of the pattern, not a pattern separator. Signed-off-b