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>
require_init=
files=
remote=
-nofetch=
+no_fetch=
rebase=
merge=
checkout=
-custom_name=
+name=
depth=
progress=
dissociate=
jobs=
recommend_shallow=
filter=
-deinit_all=
+all=
default=
summary_limit=
for_status=
;;
--name)
case "$2" in '') usage ;; esac
- custom_name="--name=$2"
+ name="--name=$2"
shift
;;
--name=*)
- custom_name="$1"
+ name="$1"
;;
--depth)
case "$2" in '') usage ;; esac
${reference:+"$reference"} \
${ref_format:+"$ref_format"} \
$dissociate \
- ${custom_name:+"$custom_name"} \
+ ${name:+"$name"} \
${depth:+"$depth"} \
-- \
"$@"
quiet=$1
;;
--all)
- deinit_all=$1
+ all=$1
;;
--)
shift
git ${wt_prefix:+-C "$wt_prefix"} submodule--helper deinit \
$quiet \
$force \
- $deinit_all \
+ $all \
-- \
"$@"
}
remote=$1
;;
-N|--no-fetch)
- nofetch=$1
+ no_fetch=$1
;;
-f|--force)
force=$1
$remote \
$recursive \
$init \
- $nofetch \
+ $no_fetch \
$rebase \
$merge \
$checkout \