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

Some command-line options have a short form which takes an argument; for
example, "--jobs" has the form "-j", and it takes a numerical argument.

When parsing short options, support the case where there is no space
between the flag and the option argument, in order to improve
consistency with the rest of the builtin git commands.

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