Skip to content

Commit 3ad0ba7

Browse files
Roy Eldargitster
authored andcommitted
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 57f9b30 commit 3ad0ba7

File tree

1 file changed

+95
-118
lines changed

1 file changed

+95
-118
lines changed

0 commit comments

Comments
 (0)