Re: [PATCH v3 6/7] git-submodule.sh: improve variables readability
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 11, 2024, 00:14 UTC
- Message-ID
- <xmqq8qsnjcsy.fsf@gitster.g>
- In-Reply-To
- <20241210184442.10723-7-royeldar0@gmail.com>
Roy Eldar <royeldar0@gmail.com> writes:
> + -b* | --branch*) > + branch="$1"
Once another option like "--branches-only" will be caught by this case arm. Do not omit "=" in the pattern.
Show 22 quoted lines
> @@ -142,14 +142,14 @@ cmd_add()
> fi
>
> git ${wt_prefix:+-C "$wt_prefix"} submodule--helper add \
> - ${quiet:+--quiet} \
> - ${force:+--force} \
> - ${progress:+"--progress"} \
> - ${branch:+--branch "$branch"} \
> - ${reference_path:+--reference "$reference_path"} \
> + $quiet \
> + $force \
> + $progress \
> + ${branch:+"$branch"} \
> + ${reference:+"$reference"} \
> ${ref_format:+"$ref_format"} \
> - ${dissociate:+--dissociate} \
> - ${custom_name:+--name "$custom_name"} \
> + $dissociate \
> + ${custom_name:+"$custom_name"} \
> ${depth:+"$depth"} \
> -- \
> "$@"Looking good.