From: Junio C Hamano Date: Wed, 15 Feb 2017 22:56:40 +0000 (-0800) Subject: Merge branch 'jk/doc-submodule-markup-fix' X-Git-Tag: v2.12.0-rc2~13 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/3e23116d1f77f73714c67fe546d879f4bbb633a0?ds=inline;hp=--cc Merge branch 'jk/doc-submodule-markup-fix' Doc markup fix. * jk/doc-submodule-markup-fix: docs/git-submodule: fix unbalanced quote --- 3e23116d1f77f73714c67fe546d879f4bbb633a0 diff --cc Documentation/git-submodule.txt index 4a4cede144,fc4fb64538..8acc72ebb8 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@@ -221,11 -227,14 +221,14 @@@ foreach [--recursive] : the processing to terminate. This can be overridden by adding '|| :' to the end of the command. + - As an example, +git submodule foreach \'echo $path {backtick}git - rev-parse HEAD{backtick}'+ will show the path and currently checked out - commit for each submodule. + As an example, the command below will show the path and currently + checked out commit for each submodule: + + + -------------- + git submodule foreach 'echo $path `git rev-parse HEAD`' + -------------- -sync:: +sync [--recursive] [--] [...]:: Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules. It will only affect those submodules which already have a URL entry in .git/config (that is the