Skip to documentation content
Branchcut

Branchcut

Find files by name or path and search inside selected files.

Branchcut combines globs, ignore rules, exclusions, and file filters into a single query. It can skip directories that cannot contain a match and stream the results as it finds them.

branchcut config
branchcut grep TODO src/
branchcut --glob 'src/**/*.rs' --gitignore --limit 10

Find an option

NeedReference
Copy a commandCheat sheet
Look up a flagCLI reference
Understand globs and ignoresGlob syntax and ignore rules
Reuse Branchcut from RustRust library tutorial

Release status

The release archives cover Windows x64, Linux x64, Intel Mac, and Apple Silicon. In v0.3.0, the ordinary branchcut executable supports literal content search. branchcut-regex adds regular expressions for filenames, paths, and content lines. See the content search guide for inputs, results, and examples.

See how traversal works and the measured timings and memory usage.

On this page