git-submodule.sh: rename some variables

Every switch and option which is passed to git-submodule.sh has a corresponding variable which is set accordingly; by convention, the name of the variable is the option name (for example, "--jobs" and "$jobs"). Rename "$custom_name", "$deinit_all" and "$nofetch", for consistency. Signed-off-by: Roy Eldar <royeldar0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Roy Eldar committed Dec 11, 2024 at 08:32 UTC b86f0f9071dd881a14cb9a71d94a66ae3186a2b9
1 file changed +10 -10
git-submodule.sh
+10 -10
@@ -40,11 +40,11 @@ init=
40 require_init=
41 files=
42 remote=
43 -nofetch=
43 +no_fetch=
44 rebase=
45 merge=
46 checkout=
47 -custom_name=
47 +name=
48 depth=
49 progress=
50 dissociate=
@@ -52,7 +52,7 @@ single_branch=
52 jobs=
53 recommend_shallow=
54 filter=
55 -deinit_all=
55 +all=
56 default=
57 summary_limit=
58 for_status=
@@ -108,11 +108,11 @@ cmd_add()
108 ;;
109 --name)
110 case "$2" in '') usage ;; esac
111 - custom_name="--name=$2"
111 + name="--name=$2"
112 shift
113 ;;
114 --name=*)
115 - custom_name="$1"
115 + name="$1"
116 ;;
117 --depth)
118 case "$2" in '') usage ;; esac
@@ -149,7 +149,7 @@ cmd_add()
149 ${reference:+"$reference"} \
150 ${ref_format:+"$ref_format"} \
151 $dissociate \
152 - ${custom_name:+"$custom_name"} \
152 + ${name:+"$name"} \
153 ${depth:+"$depth"} \
154 -- \
155 "$@"
@@ -240,7 +240,7 @@ cmd_deinit()
240 quiet=$1
241 ;;
242 --all)
243 - deinit_all=$1
243 + all=$1
244 ;;
245 --)
246 shift
@@ -259,7 +259,7 @@ cmd_deinit()
259 git ${wt_prefix:+-C "$wt_prefix"} submodule--helper deinit \
260 $quiet \
261 $force \
262 - $deinit_all \
262 + $all \
263 -- \
264 "$@"
265 }
@@ -294,7 +294,7 @@ cmd_update()
294 remote=$1
295 ;;
296 -N|--no-fetch)
297 - nofetch=$1
297 + no_fetch=$1
298 ;;
299 -f|--force)
300 force=$1
@@ -381,7 +381,7 @@ cmd_update()
381 $remote \
382 $recursive \
383 $init \
384 - $nofetch \
384 + $no_fetch \
385 $rebase \
386 $merge \
387 $checkout \