我在,在排除目录及其内容时,我需要一个用法的示例。
-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'".
发布评论
评论(1)
我与以下命令一起工作:
I got this working with following command: