Skip to content

Commit 9e0d1aa

Browse files
committed
Merge branch 'ah/format-patch-thread-doc'
Doc update. * ah/format-patch-thread-doc: format-patch: correct documentation of --thread without an argument
2 parents 7ac228c + f024913 commit 9e0d1aa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Documentation/git-format-patch.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ series, where the head is chosen from the cover letter, the
173173
threading makes every mail a reply to the previous one.
174174
+
175175
The default is `--no-thread`, unless the `format.thread` configuration
176-
is set. If `--thread` is specified without a style, it defaults to the
177-
style specified by `format.thread` if any, or else `shallow`.
176+
is set. `--thread` without an argument is equivalent to `--thread=shallow`.
178177
+
179178
Beware that the default for 'git send-email' is to thread emails
180179
itself. If you want `git format-patch` to take care of threading, you

t/t4014-format-patch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ test_expect_success 'thread' '
470470
check_threading expect.thread --thread main
471471
'
472472

473+
test_expect_success '--thread overrides format.thread=deep' '
474+
test_config format.thread deep &&
475+
check_threading expect.thread --thread main
476+
'
477+
473478
cat >expect.in-reply-to <<EOF
474479
---
475480
Message-ID: <0>

0 commit comments

Comments
 (0)