REPO(1)

πŸŽ€ REPO(1) β€” the Repo Manual, bestie edition πŸŽ€

okay so. welcome to repo grep, page 1 of the Repo Manual. she's iconic, she's useful, she's literally the group-chat search bar for your whole repo. let's get into it πŸ’…


✨ NAME ✨

repo β€” repo grep, aka the manual page for repo grep. yes that's the name. yes it's meta. no we're not changing it 🫢


🌸 SYNOPSIS 🌸

repo grep {pattern | -e pattern} [<project>...]

πŸ¦‹ DESCRIPTION πŸ¦‹

Summary

Print lines matching a pattern. that's it. that's the whole vibe. she greps, she finds, she slays ✨


πŸ’– OPTIONS πŸ’–

  • -h, --help β€” show this help message and exit. the classic "help me bestie" move πŸ₯Ί
  • -j JOBS, --jobs=JOBS β€” number of jobs to run in parallel. default is based on number of CPU cores, so she already knows how much your machine can handle πŸ’ͺ

🌈 Logging options:

  • --verbose β€” show all output. no secrets, everything on the table πŸ‘€
  • -q, --quiet β€” only show errors. silent treatment, but make it productive 🀫

🧚 Multi-manifest options:

  • --outer-manifest β€” operate starting at the outermost manifest
  • --no-outer-manifest β€” do not operate on outer manifests
  • --this-manifest-only β€” only operate on this (sub)manifest
  • --no-this-manifest-only, --all-manifests β€” operate on this manifest and its submanifests

πŸ“ Sources:

  • --cached β€” Search the index, instead of the work tree
  • -r TREEish, --revision=TREEish β€” Search TREEish, instead of the work tree

⭐ Pattern:

  • -e PATTERN β€” Pattern to search for
  • -i, --ignore-case β€” Ignore case differences
  • -a, --text β€” Process binary files as if they were text
  • -I β€” Don't match the pattern in binary files
  • -w, --word-regexp β€” Match the pattern only at word boundaries
  • -v, --invert-match β€” Select non-matching lines
  • -G, --basic-regexp β€” Use POSIX basic regexp for patterns (default)
  • -E, --extended-regexp β€” Use POSIX extended regexp for patterns
  • -F, --fixed-strings β€” Use fixed strings (not regexp) for pattern

πŸ’œ Pattern Grouping:

  • --all-match β€” Limit match to lines that have all patterns
  • --and, --or, --not β€” Boolean operators to combine patterns
  • -(, -) β€” Boolean operator grouping

πŸ‘‘ Output:

  • -n β€” Prefix the line number to matching lines
  • -C CONTEXT β€” Show CONTEXT lines around match
  • -B CONTEXT β€” Show CONTEXT lines before match
  • -A CONTEXT β€” Show CONTEXT lines after match
  • -l, --name-only, --files-with-matches β€” Show only file names containing matching lines
  • -L, --files-without-match β€” Show only file names not containing matching lines

Run repo help grep to view the detailed manual. fr fr, she has lore πŸ“–βœ¨


πŸ”₯ DETAILS πŸ”₯

Search for the specified patterns in all project files. all of them. every last one. no cap πŸ”

Boolean Options

The following options can appear as often as necessary to express the pattern to locate:

  • -e PATTERN
  • --and, --or, --not, -(, -)

Further, the -r/--revision option may be specified multiple times in order to scan multiple trees. If the same file matches in more than one tree, only the first result is reported, prefixed by the revision name it was found under. so like, she won't double-text you, she just says which tree it came from πŸ’Œ

Examples

Look for a line that has #define and either MAX_PATH or PATH_MAX:

repo grep -e '#define' --and -\( -e MAX_PATH -e PATH_MAX \)

Look for a line that has NODE or Unexpected in files that contain a line that matches both expressions:

repo grep --all-match -e NODE -e Unexpected

lowkey the -( and -) are doing the heavy lifting here and they deserve their flowers πŸ’

that's the whole page bestie β€” every flag, every grouping, every example, all intact. nothing dropped, nothing invented. she's thorough AND she's fun. main character energy only 🌈


this lil masterpiece is repo grep, from June 2026, and it lives in the REPO(1) section of the manual. mwah πŸ’‹

πŸ“¦ where this page comes from