@matheusbsbs / matheus-bagliano / commits / 04e5b3f0b4
Fork 0

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>

Kyle Meyer committed Jan 31, 2020 at 12:08 UTC 04e5b3f0b43db43b3484f72058c080ac1a4a9b38
1 file changed +1 -1
Documentation/git-submodule.txt
+1 -1
@@ -219,7 +219,7 @@ As an example, the command below will show the path and currently
219 checked out commit for each submodule:
220 +
221 --------------
222 -git submodule foreach 'echo $path `git rev-parse HEAD`'
222 +git submodule foreach 'echo $sm_path `git rev-parse HEAD`'
223 --------------
224
225 sync [--recursive] [--] [<path>...]::