forked from yasuaki/repo-help-ja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrepo-forall.txt
60 lines (43 loc) · 1.96 KB
/
repo-forall.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Summary
-------
Run a shell command in each project
Usage: repo forall [<project>...] -c <command> [<arg>...]
Options:
-h, --help show this help message and exit
-c, --command Command (and arguments) to execute
Output:
-p Show project headers before output
-v, --verbose Show command error messages
Description
-----------
Executes the same shell command in each project.
Output Formatting
-----------------
The -p option causes 'repo forall' to bind pipes to the command's stdin,
stdout and stderr streams, and pipe all output into a continuous stream
that is displayed in a single pager session. Project headings are
inserted before the output of each command is displayed. If the command
produces no output in a project, no heading is displayed.
The formatting convention used by -p is very suitable for some types of
searching, e.g. `repo forall -p -c git log -SFoo` will print all commits
that add or remove references to Foo.
The -v option causes 'repo forall' to display stderr messages if a
command produces output only on stderr. Normally the -p option causes
command output to be suppressed until the command produces at least one
byte of output on stdout.
Environment
-----------
pwd is the project's working directory. If the current client is a
mirror client, then pwd is the Git repository.
REPO_PROJECT is set to the unique name of the project.
REPO_PATH is the path relative the the root of the client.
REPO_REMOTE is the name of the remote system from the manifest.
REPO_LREV is the name of the revision from the manifest, translated to a
local tracking branch. If you need to pass the manifest revision to a
locally executed git command, use REPO_LREV.
REPO_RREV is the name of the revision from the manifest, exactly as
written in the manifest.
shell positional arguments ($1, $2, .., $#) are set to any arguments
following <command>.
Unless -p is used, stdin, stdout, stderr are inherited from the terminal
and are not redirected.