]> git.ipfire.org Git - thirdparty/git.git/commit
git-submodule.sh: improve parsing of some long options
authorRoy Eldar <royeldar0@gmail.com>
Wed, 11 Dec 2024 06:32:28 +0000 (08:32 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2024 11:46:47 +0000 (20:46 +0900)
commitb71687ca03fe5909eae54cd6f2e044822ca335de
treeb7e9b725d47a1b9fcd806b1c1f24e7fb0ed89161
parent92999a42db1c5f43f330e4f2bca4026b5b81576f
git-submodule.sh: improve parsing of some long options

Some command-line options have a long form which takes an argument. In
this case, the argument can be given right after `='; for example,
"--depth" takes a numerical argument, which can be given as "--depth=X".

Support the case where the argument is given right after `=' for all
long options, in order to improve consistency throughout the script.

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