summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-01-31 17:08:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-31 20:57:18 (GMT)
commit04e5b3f0b43db43b3484f72058c080ac1a4a9b38 (patch)
tree99f2fcf7ef9fbdad75c66596f9e04dac904872a2
parentb6d4d82bd5a49197d5d2f4f81c08da0d461cfcf1 (diff)
downloadgit-04e5b3f0b43db43b3484f72058c080ac1a4a9b38.zip
git-04e5b3f0b43db43b3484f72058c080ac1a4a9b38.tar.gz
git-04e5b3f0b43db43b3484f72058c080ac1a4a9b38.tar.bz2
submodule foreach: replace $path with $sm_path in example
f0fd0dc5c5 (submodule foreach: document '$sm_path' instead of '$path', 2018-05-08) updated the documentation to advise callers to favor $sm_path over the deprecated synonym $path. However, the example in that section still uses $path. Update it to use $sm_path. Signed-off-by: Kyle Meyer <kyle@kyleam.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-submodule.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
index 1f46380..fbcc455 100644
--- a/Documentation/git-submodule.txt
+++ b/Documentation/git-submodule.txt
@@ -219,7 +219,7 @@ 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`'
+git submodule foreach 'echo $sm_path `git rev-parse HEAD`'
--------------
sync [--recursive] [--] [<path>...]::