]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-submodule.sh: add some comments
authorRoy Eldar <royeldar0@gmail.com>
Wed, 11 Dec 2024 06:32:32 +0000 (08:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2024 11:46:48 +0000 (20:46 +0900)
Add a couple of comments in a few functions where they were missing.

Signed-off-by: Roy Eldar <royeldar0@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh

index ba3bef882147973b510c15b516079c76aa8570fa..ee86e4de46f6929659ab69b2a5ef0e2454de29ab 100755 (executable)
@@ -418,6 +418,7 @@ cmd_set_branch() {
        default=
        branch=
 
+       # parse $args after "submodule ... set-branch".
        while test $# -ne 0
        do
                case "$1" in
@@ -466,6 +467,7 @@ cmd_set_branch() {
 # $@ = requested path, requested url
 #
 cmd_set_url() {
+       # parse $args after "submodule ... set-url".
        while test $# -ne 0
        do
                case "$1" in
@@ -604,6 +606,7 @@ cmd_status()
 #
 cmd_sync()
 {
+       # parse $args after "submodule ... sync".
        while test $# -ne 0
        do
                case "$1" in