Re: .gitattributes escape character?
- From
Kevin Ballard <kevin@sb.org>
- Date
- Nov 3, 2010, 21:03 UTC
- Message-ID
- <F6E88AB2-D512-45A3-87FF-46F2C9ED0092@sb.org>
- In-Reply-To
- <AANLkTinNctmWpshBeSTzZRm6+EJ=Cjdpoaj4Aon+52_b@mail.gmail.com>
On Nov 3, 2010, at 8:47 AM, Nguyen Thai Ngoc Duy wrote:
Show 9 quoted lines
> On Wed, Nov 3, 2010 at 7:24 PM, Marc Strapetz <marc.strapetz@syntevo.com> wrote: >> Is there an escape character which may be used in .gitattributes to >> escape e.g. the space-character? Could octal-escaping help here (I >> didn't succeed)? Thanks for any hints. > > You mean escape the path part in .gitattributes? Sorry, no. > > I think we can teach git about path quoting though. A leading double > quote means the path is quoted, C-style.
I agree that gitattributes needs to learn about C-style quoting. However, in the meantime you can just replace a space with ? as it's actually a pattern. In other words, "test/file with spaces" can be represented as test/file?with?spaces
-Kevin Ballard