summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRoy Eldar <royeldar0@gmail.com>2024-12-11 08:32:33 +0200
committerJunio C Hamano <gitster@pobox.com>2024-12-11 20:46:48 +0900
commit3ad0ba72274436f4e1eef6bed392e3e875484e2b (patch)
treedcefbb60c0bbf708e1f3ce9ccb40825b8c743b50 /commit.c
parent57f9b30fcd7707b3917d96e98dc109fb541cd30b (diff)
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 <gitster@pobox.com> Signed-off-by: Roy Eldar <royeldar0@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions