summaryrefslogtreecommitdiff
path: root/git-gui/lib
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-08-05 16:38:56 +0200
committerJunio C Hamano <gitster@pobox.com>2023-08-06 17:16:50 -0700
commit8dcb49021e0134a1be1f533596e2bcf8313dea33 (patch)
tree8a00fb3f7d1426171c35b63060b61c31a80744bc /git-gui/lib
parentaa43619bdf690c8ed44746030552a35244f97af7 (diff)
t1502: move optionspec help output to a file
"git rev-parse --parseopt" shows the short help with its description of all recognized options twice: When called with -h or --help, and after reporting an unknown option. Move the one for optionspec into a file and use it in two tests to deduplicate that part. "git rev-parse --parseopt -- --h" wraps the help text in "cat <<\EOF" and "EOF". Keep that part in the file to use it as is in the test that needs it and simply remove it in the other one using sed. Disable whitespace checking for the file using an attribute, as we need to keep its spaces intact and wouldn't want a stray --whitespace=fix turn them into tabs. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib')
0 files changed, 0 insertions, 0 deletions