Commit 550a2b1
git-submodule.sh: improve variables readability
When git-submodule.sh parses various options and switches, it sets some
variables to values; the variables in turn affect the options given to
git-submodule--helper.
Currently, variables which correspond to switches have boolean values
(for example, whenever "--force" is passed, force=1), while variables
which correspond to options which take arguments have string values that
sometimes contain the option name and sometimes only the option value.
Set all of the variables to strings which contain the option name (e.g.
force="--force" rather than force=1); this has a couple of advantages:
it improves consistency, readability and debuggability.
Suggested-by: Junio C Hamano <[email protected]>
Signed-off-by: Roy Eldar <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent e63ab86 commit 550a2b1
1 file changed
+98
-121
lines changed
0 commit comments