summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorDaniel Sonbolian <dsal3389@gmail.com>2022-10-08 16:21:37 +0000
committerJunio C Hamano <gitster@pobox.com>2022-10-08 22:11:37 -0700
commit413bc6d20ad4d686f68afcf3c012b77840c1243b (patch)
treea7b5a1403b7b120a958e77978d7f398f71b305f4 /builtin/commit.c
parenta0feb8611d4c0b2b5d954efe4e98207f62223436 (diff)
git.c: improve code readability in cmd_main()
Check for an error condition whose body unconditionally exists first, and then perform the special casing of "version" and "help" as part of the preparation for the "normal codepath". This makes the code simpler to read. Signed-off-by: Daniel Sonbolian <dsal3389@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions