hg - Ignore directory at root only

后端 未结 2 371
轮回少年
轮回少年 2020-12-29 20:37

In my project\'s .hgignore, I want to exclude /static/ (i.e., the static folder at the root of the directory), but not /templates/static/

2条回答
  •  误落风尘
    2020-12-29 21:18

    As of Mercurial 4.9, you can use syntax: rootglob to insert rooted glob patterns.

    New rootglob: filename pattern for a glob that is rooted at the root of the repository. See hg help patterns and hg help hgignore for details

提交回复
热议问题