Why does .hginore fail to ignore files in the subdirectory I'm trying to specify

StackOverflow https://stackoverflow.com/questions/20999884

  •  25-09-2022
  •  | 
  •  

문제

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)

도움이 되었습니까?

해결책

The ** pattern matches any string, and crosses directory boundaries (while * does not).

Try with:

**/Images/**pgm
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top