在.hgignore中包含相对路径

时间:2018-06-02 13:00:23

标签: mercurial hgignore

如何使用相对路径将一个.hgignore文件包含另一个.hgignore文件?

我知道的包含方法(include:<path-to-hgignore>)需要<path-to-hgignore>生根。

例如,如果我有以下文件:

.hgignore
hgignore/all.hgignore
hgignore/eclipse.hgignore
hgignore/idea.hgignore
例如,以下包含在我的根.hgignore中:

include:hgignore/all.hgignore

我可以从all.hgignore内部工作的唯一包括必须扎根,例如:

include:hgignore/eclipse.hgignore
include:hgignore/idea.hgignore

尝试在all.hgignore内包含以下任何路径始终会导致No such file or directory错误:

include:eclipse.hgignore
include:./eclipse.hgignore
include:/eclipse.hgignore

all.hgignore内有什么类似的内容吗?

include-relative:eclipse.hgignore

0 个答案:

没有答案