format-patch: correct documentation of --thread without an argument

In Git, almost all command line flags unconditionally override the
corresponding config option.[1] Add a test to confirm that this is the
case for `git format-patch --thread`.

[1] https://lore.kernel.org/git/CAMMLpeS3+NUQa2oqpHKVo3yWQNVMgkEXrs4U5_ggvk31yQbezQ@mail.gmail.com/

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Alex Henrie
2023-04-02 22:07:24 -06:00
committed by Junio C Hamano
parent 140b9478da
commit f024913164
2 changed files with 6 additions and 2 deletions

View File

@ -470,6 +470,11 @@ test_expect_success 'thread' '
check_threading expect.thread --thread main
'
test_expect_success '--thread overrides format.thread=deep' '
test_config format.thread deep &&
check_threading expect.thread --thread main
'
cat >expect.in-reply-to <<EOF
---
Message-Id: <0>