From: Kevin Ballard Date: Wed, 03 Nov 2010 21:03:59 GMT Subject: Re: .gitattributes escape character? Message-ID: In-Reply-To: On Nov 3, 2010, at 8:47 AM, Nguyen Thai Ngoc Duy wrote: > On Wed, Nov 3, 2010 at 7:24 PM, Marc Strapetz 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