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β SearchTREEish, 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β ShowCONTEXTlines around match-B CONTEXTβ ShowCONTEXTlines before match-A CONTEXTβ ShowCONTEXTlines 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
- arch rolling: repo 2.67-1 Β· Apache-2.0
- fedora 43: repo 2.68-1.fc43
- fedora 43: repo 2.69-1.fc43 Β· Apache-2.0
- fedora 44: repo 2.68-1.fc44
- fedora 44: repo 2.69-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms