]> git.ipfire.org Git - thirdparty/git.git/commitdiff
submodule: accept -v for the update command
authorSven Strickroth <email@cs-ware.de>
Sat, 10 Dec 2022 13:06:37 +0000 (14:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Dec 2022 01:28:30 +0000 (10:28 +0900)
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>
git-submodule.sh

index 5e5d21c010f7d4337dbf95cd50eeaf8c97791ba8..6e372e762bca070dc29eb5fb9fbf58bc15d54137 100755 (executable)
@@ -244,6 +244,9 @@ cmd_update()
                -q|--quiet)
                        quiet=1
                        ;;
+               -v|--verbose)
+                       quiet=0
+                       ;;
                --progress)
                        progress=1
                        ;;