diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-13 11:21:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-13 11:21:49 -0700 |
commit | 08b56871ff7ade47310461cf7f6f4f8e72200c60 (patch) | |
tree | a0743607c6ada22ce4e4f79061046e94219632c6 /Documentation | |
parent | Merge branch 'rs/grep-binary' (diff) | |
parent | git-submodule foreach: Add $toplevel variable (diff) | |
download | tgif-08b56871ff7ade47310461cf7f6f4f8e72200c60.tar.xz |
Merge branch 'ab/submodule-foreach-toplevel'
* ab/submodule-foreach-toplevel:
git-submodule foreach: Add $toplevel variable
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-submodule.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 2502531a3d..cdabfd29ad 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -145,10 +145,12 @@ summary:: foreach:: Evaluates an arbitrary shell command in each checked out submodule. - The command has access to the variables $name, $path and $sha1: + The command has access to the variables $name, $path, $sha1 and + $toplevel: $name is the name of the relevant submodule section in .gitmodules, $path is the name of the submodule directory relative to the - superproject, and $sha1 is the commit as recorded in the superproject. + superproject, $sha1 is the commit as recorded in the superproject, + and $toplevel is the absolute path to the top-level of the superproject. Any submodules defined in the superproject but not checked out are ignored by this command. Unless given --quiet, foreach prints the name of each submodule before evaluating the command. |