How do I exclude a directory when raising a review using rbtools?

321 Views Asked by At

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

There are 1 best solutions below

0
On

I got this working with following command:

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