Reputation: 7505
I've created a .hgignore file in the following way:
syntax: glob
*/Images/*pgm
which I had hoped would ignore all .pgm files in any subdirectory of my Images directory. However, it does not ignore them.
When I create the following .hginore file, pgm files are ignored
syntax: glob
*pgm
Why doesn't my more targeted attempt work? (Note: There are other ignore patterns in my file, which I have omitted)
Upvotes: 1
Views: 182
Reputation: 22451
The **
pattern matches any string, and crosses directory boundaries (while *
does not).
Try with:
**/Images/**pgm
Upvotes: 2