How to make hg ignore filter case insensitive

I am trying to set up an hg repo for an old project on Windows. I want to ignore images, binaries and some third-party source files, however these files contain different shells for the same templates, for example .jpg and .JPG, abc_sth and ABC_sth.

I found out that hgignore is case sensitive, do I need to list various cases in the hgignore file, or are there options that I can enable to make the ignore filter case invisible?

+4
source share
1 answer

Finally, I get enough answers to post my own answer.

Use regex syntax and prefix (?i) . So the example template that I used here may be

 syntax: regexp (?i)\.jpg (?i)abc_ 
+13
source

Source: https://habr.com/ru/post/1490035/


All Articles