mbox series

[0/3] git-submodule.sh: improve parsing of options

Message ID 20241207135201.2536-1-royeldar0@gmail.com (mailing list archive)
Headers show
Series git-submodule.sh: improve parsing of options | expand

Message

Roy Eldar Dec. 7, 2024, 1:51 p.m. UTC
When we run "git submodule", the script parses the various options and
then invokes "git-submodule--helper". Unlike most builtin git commands
which parse short/long options using parse-options.c, the parsing of
arguments is completely done within git-submodule.sh; therefore, there
are some inconsistencies with the rest of the commands, in particular
the parsing of option arguments given to various options.

Improve the handling of option arguments for both long & short options;
for example, passing flags such as "--branch=master" or "-j8" now works.

Roy Eldar (3):
  git-submodule.sh: make some variables boolean
  git-submodule.sh: improve parsing of some long options
  git-submodule.sh: improve parsing of short options

 git-submodule.sh | 32 +++++++++++++++++++++++++++-----
 1 file changed, 27 insertions(+), 5 deletions(-)