hgignore: help ignoring all files but certain ones

后端 未结 3 1891
后悔当初
后悔当初 2020-12-02 15:29

I need an .hgdontignore file :-) to include certain files and exclude everything else in a directory. Basically I want to include only the .jar files in a particular directo

3条回答
  •  渐次进展
    2020-12-02 16:00

    The answer from Michael is a fine one, but another option is to just exclude:

    foo/bar/**
    

    and then manually add the .jar files. You can always add files that are excluded by an ignore rule and it overrides the ignore. You just have to remember to add any jars you create in the future.

提交回复
热议问题