]> git.ipfire.org Git - thirdparty/git.git/commitdiff
submodule foreach: replace $path with $sm_path in example
authorKyle Meyer <kyle@kyleam.com>
Fri, 31 Jan 2020 17:08:43 +0000 (12:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jan 2020 20:57:18 +0000 (12:57 -0800)
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>
Documentation/git-submodule.txt

index 1f46380af2d49360802dfa579d4b51b6e1fbaeda..fbcc455cae77f858a7a3350a9b15c68c456fc46d 100644 (file)
@@ -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>...]::