Bazaar 语法忽略与通配符匹配的目录
我确信这是一个愚蠢的问题,但是用 Bazaar 忽略我的 _Resharper.*
目录的语法是什么?我尝试忽略: \_Resharper*.*
./\_Resharper*.*
、**/\_Resharper*.*
,加上通配符上的变体。无论我做什么,它都会继续获取目录。
I'm sure this is a dumb question, but what is the syntax to ignore my _Resharper.*
directories with Bazaar? I've tried ignoring: \_Resharper*.*
./\_Resharper*.*
, **/\_Resharper*.*
, plus variations of those on the wildcards. No matter what I do, it continues to pick up the directory.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能会被 shell 中发生的通配符扩展所困扰。
输入
bzrignore --help
并查看示例部分:bzrignore ./Makefile
bzrignore "*.class"
bzr 忽略 "lib/**/*.o"
bzr忽略“RE:lib/.*\.o”
bzr 忽略“RE:(?!debian/).*”
You are probably bitten by the wildcard expansion occuring in the shell.
Type
bzr ignore --help
and look at the Examples section:bzr ignore ./Makefile
bzr ignore "*.class"
bzr ignore "lib/**/*.o"
bzr ignore "RE:lib/.*\.o"
bzr ignore "RE:(?!debian/).*"
您不需要在那里使用反斜杠。只是
或
将会起作用。
You don't need to use backslash there. Just
or
will work.
#警告
至少在 ~2.7.* 版本中,如果低于匹配规则的实体已经被版本化(在版本控制下),bazaar 不会轻易告诉您它忽略 **/wildcard/* 规则。
例子:
**/vendor/*
仍然在$ bzr st
中为我生成条目,位于 vendor/ 下方,直到我发出命令$ bzr从 vendor/ 目录中删除 --keep .
#caution
At least with version ~2.7.* bazaar will not easily tell you that it is ignoring a **/wildcard/* rule in cases where entities below a matched rule are already versioned (under version control).
example:
**/vendor/*
still produced entries in$ bzr st
for me, below vendor/ until I issued the command$ bzr remove --keep .
from within the vendor/ directory