]> git.99rst.org Git - git.git/commit
parse-options: simplify usage_padding()
authorRené Scharfe <redacted>
Sat, 5 Aug 2023 14:52:42 +0000 (16:52 +0200)
committerJunio C Hamano <redacted>
Mon, 7 Aug 2023 00:16:51 +0000 (17:16 -0700)
commit311c8ff11cebef1219e110743d9a57cb9831ab06
treeaf8035df2f9a61bb38e87d9a929a041b95272375
parent2a409a1d1250c8a9fcac7beaa58ae80881dda2dc
parse-options: simplify usage_padding()

c512643e67 (short help: allow a gap smaller than USAGE_GAP, 2023-07-18)
effectively did away with the two-space gap between options and their
description; one space is enough now.  Incorporate USAGE_GAP into
USAGE_OPTS_WIDTH, merge the two cases with enough space on the line and
incorporate the newline into the format for the remaining case.  The
output remains the same.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
parse-options.c
git clone https://git.99rst.org/PROJECT