1REPO(1)                           Repo Manual                          REPO(1)
2
3
4

NAME

6       repo - repo grep - manual page for repo grep
7

SYNOPSIS

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

DESCRIPTION

12       Summary
13
14       Print lines matching a pattern
15

OPTIONS

17       -h, --help
18              show this help message and exit
19
20       -j JOBS, --jobs=JOBS
21              number  of  jobs to run in parallel (default: based on number of
22              CPU cores)
23
24   Logging options:
25       --verbose
26              show all output
27
28       -q, --quiet
29              only show errors
30
31   Multi-manifest options:
32       --outer-manifest
33              operate starting at the outermost manifest
34
35       --no-outer-manifest
36              do not operate on outer manifests
37
38       --this-manifest-only
39              only operate on this (sub)manifest
40
41       --no-this-manifest-only, --all-manifests
42              operate on this manifest and its submanifests
43
44   Sources:
45       --cached
46              Search the index, instead of the work tree
47
48       -r TREEish, --revision=TREEish
49              Search TREEish, instead of the work tree
50
51   Pattern:
52       -e PATTERN
53              Pattern to search for
54
55       -i, --ignore-case
56              Ignore case differences
57
58       -a, --text
59              Process binary files as if they were text
60
61       -I     Don't match the pattern in binary files
62
63       -w, --word-regexp
64              Match the pattern only at word boundaries
65
66       -v, --invert-match
67              Select non-matching lines
68
69       -G, --basic-regexp
70              Use POSIX basic regexp for patterns (default)
71
72       -E, --extended-regexp
73              Use POSIX extended regexp for patterns
74
75       -F, --fixed-strings
76              Use fixed strings (not regexp) for pattern
77
78   Pattern Grouping:
79       --all-match
80              Limit match to lines that have all patterns
81
82       --and, --or, --not
83              Boolean operators to combine patterns
84
85       -(, -) Boolean operator grouping
86
87   Output:
88       -n     Prefix the line number to matching lines
89
90       -C CONTEXT
91              Show CONTEXT lines around match
92
93       -B CONTEXT
94              Show CONTEXT lines before match
95
96       -A CONTEXT
97              Show CONTEXT lines after match
98
99       -l, --name-only, --files-with-matches
100              Show only file names containing matching lines
101
102       -L, --files-without-match
103              Show only file names not containing matching lines
104
105       Run `repo help grep` to view the detailed manual.
106

DETAILS

108       Search for the specified patterns in all project files.
109
110       Boolean Options
111
112       The following options can appear as often as necessary to  express  the
113       pattern to locate:
114
115       -e PATTERN
116
117       --and, --or, --not, -(, -)
118
119       Further,  the  -r/--revision  option may be specified multiple times in
120       order to scan multiple trees. If the same file matches in more than one
121       tree,  only the first result is reported, prefixed by the revision name
122       it was found under.
123
124       Examples
125
126       Look for a line that has '#define' and either 'MAX_PATH or 'PATH_MAX':
127
128              repo grep -e '#define' --and -\( -e MAX_PATH -e PATH_MAX \)
129
130       Look for a line that has 'NODE' or 'Unexpected' in files that contain a
131       line that matches both expressions:
132
133              repo grep --all-match -e NODE -e Unexpected
134
135
136
137repo grep                          July 2022                           REPO(1)
Impressum