Skip to content

Commit

Permalink
Merge branch 'jk/doc-submodule-markup-fix'
Browse files Browse the repository at this point in the history
Doc markup fix.

* jk/doc-submodule-markup-fix:
  docs/git-submodule: fix unbalanced quote
  • Loading branch information
gitster committed Feb 15, 2017
2 parents 8c00b7e + e91461b commit 3e23116
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Documentation/git-submodule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,12 @@ foreach [--recursive] <command>::
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 [--recursive] [--] [<path>...]::
Synchronizes submodules' remote URL configuration setting
Expand Down

0 comments on commit 3e23116

Please sign in to comment.