Whitespace in .gitattributes patterns
问题 I am writing some tools for git that make use of smudge/clean filters, and so I must create entries in the .gitattributes file. Unfortunately, that file is parsed rather simply by splitting on whitespace, and so it is does not seem possible to me to include an explicit space character in the pattern. I have been replacing whitespace characters with ? , which matches again zero or one characters. Ergo, a pattern of has?spaces will match against my target filename of has spaces , but also