diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-06-30 16:12:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-30 16:12:35 -0700 |
commit | 725cf7b45da1f983fa1cbb0757b0e8855e5ac2de (patch) | |
tree | 7ea146277466418c86f2feb141523e875d18e657 /Documentation/git-submodule.txt | |
parent | 6167c136579f17066e985a8bf7d9c020878b9a3e (diff) | |
parent | d4c985653a580e78db94c549bdcd71669067b8a9 (diff) | |
download | git-725cf7b45da1f983fa1cbb0757b0e8855e5ac2de.tar.gz |
Merge branch 'maint'
* maint:
attr: plug minor memory leak
request-pull: really disable pager
Makes some cleanup/review in gittutorial
Makefile: git.o depends on library headers
git-submodule documentation: fix foreach example
Diffstat (limited to 'Documentation/git-submodule.txt')
-rw-r--r-- | Documentation/git-submodule.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt index 470bd75ad9..683ba1a1eb 100644 --- a/Documentation/git-submodule.txt +++ b/Documentation/git-submodule.txt @@ -141,8 +141,9 @@ foreach:: the processing to terminate. This can be overridden by adding '|| :' to the end of the command. + -As an example, "git submodule foreach 'echo $path `git rev-parse HEAD`' will -show the path and currently checked out commit for each submodule. +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. sync:: Synchronizes submodules' remote URL configuration setting |