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   Sources:
32       --cached
33              Search the index, instead of the work tree
34
35       -r TREEish, --revision=TREEish
36              Search TREEish, instead of the work tree
37
38   Pattern:
39       -e PATTERN
40              Pattern to search for
41
42       -i, --ignore-case
43              Ignore case differences
44
45       -a, --text
46              Process binary files as if they were text
47
48       -I     Don't match the pattern in binary files
49
50       -w, --word-regexp
51              Match the pattern only at word boundaries
52
53       -v, --invert-match
54              Select non-matching lines
55
56       -G, --basic-regexp
57              Use POSIX basic regexp for patterns (default)
58
59       -E, --extended-regexp
60              Use POSIX extended regexp for patterns
61
62       -F, --fixed-strings
63              Use fixed strings (not regexp) for pattern
64
65   Pattern Grouping:
66       --all-match
67              Limit match to lines that have all patterns
68
69       --and, --or, --not
70              Boolean operators to combine patterns
71
72       -(, -) Boolean operator grouping
73
74   Output:
75       -n     Prefix the line number to matching lines
76
77       -C CONTEXT
78              Show CONTEXT lines around match
79
80       -B CONTEXT
81              Show CONTEXT lines before match
82
83       -A CONTEXT
84              Show CONTEXT lines after match
85
86       -l, --name-only, --files-with-matches
87              Show only file names containing matching lines
88
89       -L, --files-without-match
90              Show only file names not containing matching lines
91
92       Run `repo help grep` to view the detailed manual.
93

DETAILS

95       Search for the specified patterns in all project files.
96
97       Boolean Options
98
99       The following options can appear as often as necessary to  express  the
100       pattern to locate:
101
102       -e PATTERN
103
104       --and, --or, --not, -(, -)
105
106       Further,  the  -r/--revision  option may be specified multiple times in
107       order to scan multiple trees. If the same file matches in more than one
108       tree,  only the first result is reported, prefixed by the revision name
109       it was found under.
110
111       Examples
112
113       Look for a line that has '#define' and either 'MAX_PATH or 'PATH_MAX':
114
115              repo grep -e '#define' --and -\( -e MAX_PATH -e PATH_MAX \)
116
117       Look for a line that has 'NODE' or 'Unexpected' in files that contain a
118       line that matches both expressions:
119
120              repo grep --all-match -e NODE -e Unexpected
121
122
123
124repo grep                          July 2021                           REPO(1)
Impressum