开发者

how to construct specific mercurial ignore patterns?

开发者 https://www.devze.com 2023-01-22 13:45 出处:网络
I would like to ignore all files that start with: ._ 开发者_运维知识库 How would I write this in the .hgignore file?$ cat .hgignore

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

精彩评论

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