Sudar
Sudar

Reputation: 20000

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
......
.....

Upvotes: 3

Views: 46

Answers (2)

borrible
borrible

Reputation: 17356

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.

Upvotes: 1

Tony
Tony

Reputation: 751

[Rr][Ee][Aa][Dd][Mm][Ee].[Mm][Dd]

Upvotes: 4

Related Questions