Search code examples
svnsvnignore

Add a filename to svn:ignore in case insenstive manner


I want to add a file to a svn:ignore so that it is always ignored even if the filename is present in different case. How to do it?

eg:

I want to ignore the file readme.md, even if it is present in any case like

README.md
readme.MD
Readme.md
......
.....

Solution

  • Subversion allows the following file patterns: ? (match single character), * (match a string of characters) and [...] (where ... indicates a subset of characters to match). As such you can build up your filename using items of the form [Xx] for the upper and lower case characters.