Skip to content

Commit 3e23116

Browse files
committed
Merge branch 'jk/doc-submodule-markup-fix'
Doc markup fix. * jk/doc-submodule-markup-fix: docs/git-submodule: fix unbalanced quote
2 parents 8c00b7e + e91461b commit 3e23116

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Documentation/git-submodule.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,12 @@ foreach [--recursive] <command>::
221221
the processing to terminate. This can be overridden by adding '|| :'
222222
to the end of the command.
223223
+
224-
As an example, +git submodule foreach \'echo $path {backtick}git
225-
rev-parse HEAD{backtick}'+ will show the path and currently checked out
226-
commit for each submodule.
224+
As an example, the command below will show the path and currently
225+
checked out commit for each submodule:
226+
+
227+
--------------
228+
git submodule foreach 'echo $path `git rev-parse HEAD`'
229+
--------------
227230

228231
sync [--recursive] [--] [<path>...]::
229232
Synchronizes submodules' remote URL configuration setting

0 commit comments

Comments
 (0)