summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-03-03 13:19:43 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-03 09:49:22 -0800
commit28a92478b825a4a2c7c2c0c6b725ce92cd0b83e0 (patch)
tree24bed56192a46eeb78bb8796903fa4342fed21a0 /commit.c
parentb1ce2b62fa4c6cf6d972698ac48be451cbc07718 (diff)
parse-options: rearrange long_name matching code
Move the code for handling a full match of long_name first and get rid of negations. Reduce the indent of the code for matching abbreviations and remove unnecessary curly braces. Combine the checks for whether negation is allowed and whether arg is "n", "no" or "no-" because they belong together and avoid a continue statement. The result is shorter, more readable code. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions