I have a large file system in which almost every folder has a file called content.txt
I want to track every file named content.txt and automatically ignore everything else. I want the repo to automatically track new files named content.txt so I don’t want to ignore everything in the .hgignore and then manually add.
Anyone know how to do this?
path-part of regexp, but “all except content.txt” draft isre:.*\.(?!content.txt)as hopeAlternative solution can be
* ignore all
* add content.txt files pattern to commit command (-I option), see
hg help commitandhg help patternshg commit -I '**content.txt'Edit
re:.*/(?!content.txt)