开发者

how to construct specific mercurial ignore patterns?

I would like to ignore all files that start with:

._
开发者_运维知识库

How would I write this in the .hgignore file?


$ cat .hgignore
syntax: glob
._*

Which I have tested thusly (with some "noise" like .. removed for clarity):

$ ls -aRF
.:
a  ._a   .hgignore  sub/

./sub:
a  ._a
$ hg stat
? .hgignore
? a
? sub/a
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜