سؤال

I am trying to set up an hg repo for an old project on Windows. I want to ignore images, binaries, and some 3rd party source files, however these files contains different casing for the same patterns, for example, .jpg and .JPG, abc_sth and ABC_sth.

I learned that hgignore is case sensitive, do I have to list the different cases all in the hgignore file, or are there options that I can turn on to make the ignore filter case insensitive?

هل كانت مفيدة؟

المحلول

Finally I get enough rep to post my own answer.

Use regex syntax, and prefix (?i). So the pattern for the example I used here can be

syntax: regexp
(?i)\.jpg
(?i)abc_
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top