diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-09-13 02:13:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-12 18:57:30 -0700 |
commit | 84122ecdbfdf5a52153a34b53fad60a5f50e6b13 (patch) | |
tree | abb304ebc938dbf39dab9d8ef8ced4857045ea6e /t/t1600-index.sh | |
parent | send-pack: properly use parse_options() API for usage string (diff) | |
download | tgif-84122ecdbfdf5a52153a34b53fad60a5f50e6b13.tar.xz |
git rev-parse --parseopt tests: add more usagestr tests
Add tests for the "usagestr" passed to parse-options.c
usage_with_options_internal() through cmd_parseopt().
These test for edge cases in the existing behavior related to the
"--parseopt" interface doing its own line-splitting with
strbuf_getline(), and the native C interface expecting and potentially
needing to handle newlines within the strings in the array it
accepts. The results are probably something that wasn't anticipated,
but let's make sure we stay backwards compatible with it.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1600-index.sh')
0 files changed, 0 insertions, 0 deletions