Bazaar 语法忽略与通配符匹配的目录

发布于 2024-08-10 20:54:11 字数 194 浏览 2 评论 0原文

我确信这是一个愚蠢的问题,但是用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

傲世九天 2024-08-17 20:54:11

您可能会被 shell 中发生的通配符扩展所困扰。

输入 bzrignore --help 并查看示例部分:

  • 忽略顶层 Makefile:bzrignore ./Makefile
  • 忽略所有目录中的类文件:bzrignore "*.class"
  • 忽略lib目录下的.o文件:bzr 忽略 "lib/**/*.o"
  • 忽略lib目录下的.o文件:bzr忽略“RE:lib/.*\.o”
  • 忽略除“debian”顶级目录之外的所有内容: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:

  • Ignore the top level Makefile: bzr ignore ./Makefile
  • Ignore class files in all directories: bzr ignore "*.class"
  • Ignore .o files under the lib directory:bzr ignore "lib/**/*.o"
  • Ignore .o files under the lib directory: bzr ignore "RE:lib/.*\.o"
  • Ignore everything but the "debian" toplevel directory: bzr ignore "RE:(?!debian/).*"
旧梦荧光笔 2024-08-17 20:54:11

您不需要在那里使用反斜杠。只是

_Resharper.*

_Resharper

将会起作用。

You don't need to use backslash there. Just

_Resharper.*

or

_Resharper

will work.

我要还你自由 2024-08-17 20:54:11

#警告
至少在 ~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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文