git-submodule.sh: add some comments

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>
This commit is contained in:
Roy Eldar
2024-12-11 08:32:32 +02:00
committed by Junio C Hamano
parent 402e46daf5
commit 57f9b30fcd

View File

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