submodule: accept -v for the update command
Since a56771a6 (builtin/pull: respect verbosity settings in submodules, 2018-01-25), "git pull -v --recurse-submodules" propagates the "-v" to the submodule command, but because the latter command does not understand the option, it barfs. Teach "git submodule update" to accept the option to fix it. Signed-off-by: Sven Strickroth <email@cs-ware.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sven Strickroth committed
Dec 10, 2022 at 14:06 UTC
6f65f847664445b347810bece6eee84c2f39f4ef
1 file changed
+3
git-submodule.sh
+3
@@ -244,6 +244,9 @@ cmd_update()
244
-q|--quiet)
245
quiet=1
246
;;
247
+ -v|--verbose)
248
+ quiet=0
249
+ ;;
250
--progress)
251
progress=1
252
;;