在使用RBTools进行审核时,如何排除目录?

发布于 2025-02-09 16:40:49 字数 423 浏览 3 评论 0 原文

我在,在排除目录及其内容时,我需要一个用法的示例。

-x, - 隔离 不包括匹配差异给定模式的所有文件。可以多次使用这来指定多种模式。 Unix Glob语法用于模式匹配。 支持:集市,简历,GIT,Mercurial,Perforce,Sos和Subversion。 以路径分离器开头的模式(/在Mac OS和Linux上,Windows上)将被视为相对于存储库的根。所有其他模式都被视为相对于当前的工作目录。 例如,要从结果差异中排除所有“ .txt”文件,您将使用“ -x /'h.txt'”。

I see this option in rbtools documentation, I need an example for its usage when excluding a directory and its contents.

-X , --exclude
Excludes all files that match the given pattern from the diff. This can be used multiple times to specify multiple patterns. UNIX glob syntax is used for pattern matching.
Supported by: Bazaar, CVS, Git, Mercurial, Perforce, SOS, and Subversion.
Patterns that begin with a path separator (/ on Mac OS and Linux, on Windows) will be treated as being relative to the root of the repository. All other patterns are treated as being relative to the current working directory.
For example, to exclude all ".txt" files from the resulting diff, you would use "-X /'*.txt'".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

晨与橙与城 2025-02-16 16:40:49

我与以下命令一起工作:

rbt post -X "<toExcludeDirectory>/*" --open master..head

I got this working with following command:

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