Skip to content

Commit 1c6fc94

Browse files
committed
Merge branch 'dl/format-patch-doc-test-cleanup'
The documentation and tests for "git format-patch" have been cleaned up. * dl/format-patch-doc-test-cleanup: config/format.txt: specify default value of format.coverLetter Doc: add more detail for git-format-patch t4014: stop losing return codes of git commands t4014: remove confusing pipe in check_threading() t4014: use test_line_count() where possible t4014: let sed open its own files t4014: drop redirections to /dev/null t4014: use indentable here-docs t4014: remove spaces after redirect operators t4014: use sq for test case names t4014: move closing sq onto its own line t4014: s/expected/expect/ t4014: drop unnecessary blank lines from test cases
2 parents 0281733 + 50094ca commit 1c6fc94

File tree

3 files changed

+421
-417
lines changed

3 files changed

+421
-417
lines changed

Documentation/config/format.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ format.coverLetter::
7777
A boolean that controls whether to generate a cover-letter when
7878
format-patch is invoked, but in addition can be set to "auto", to
7979
generate a cover-letter only when there's more than one patch.
80+
Default is false.
8081

8182
format.outputDirectory::
8283
Set a custom directory to store the resulting files instead of the

Documentation/git-format-patch.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ SYNOPSIS
1717
[--signature-file=<file>]
1818
[-n | --numbered | -N | --no-numbered]
1919
[--start-number <n>] [--numbered-files]
20-
[--in-reply-to=Message-Id] [--suffix=.<sfx>]
20+
[--in-reply-to=<message id>] [--suffix=.<sfx>]
2121
[--ignore-if-in-upstream]
22-
[--rfc] [--subject-prefix=Subject-Prefix]
22+
[--rfc] [--subject-prefix=<subject prefix>]
2323
[(--reroll-count|-v) <n>]
2424
[--to=<email>] [--cc=<email>]
2525
[--[no-]cover-letter] [--quiet]
@@ -159,9 +159,9 @@ Beware that the default for 'git send-email' is to thread emails
159159
itself. If you want `git format-patch` to take care of threading, you
160160
will want to ensure that threading is disabled for `git send-email`.
161161

162-
--in-reply-to=Message-Id::
162+
--in-reply-to=<message id>::
163163
Make the first mail (or all the mails with `--no-thread`) appear as a
164-
reply to the given Message-Id, which avoids breaking threads to
164+
reply to the given <message id>, which avoids breaking threads to
165165
provide a new patch series.
166166

167167
--ignore-if-in-upstream::
@@ -171,9 +171,9 @@ will want to ensure that threading is disabled for `git send-email`.
171171
patches being generated, and any patch that matches is
172172
ignored.
173173

174-
--subject-prefix=<Subject-Prefix>::
174+
--subject-prefix=<subject prefix>::
175175
Instead of the standard '[PATCH]' prefix in the subject
176-
line, instead use '[<Subject-Prefix>]'. This
176+
line, instead use '[<subject prefix>]'. This
177177
allows for useful naming of a patch series, and can be
178178
combined with the `--numbered` option.
179179

@@ -314,7 +314,8 @@ you can use `--suffix=-patch` to get `0001-description-of-my-change-patch`.
314314
--base=<commit>::
315315
Record the base tree information to identify the state the
316316
patch series applies to. See the BASE TREE INFORMATION section
317-
below for details.
317+
below for details. If <commit> is "auto", a base commit is
318+
automatically chosen.
318319

319320
--root::
320321
Treat the revision argument as a <revision range>, even if it
@@ -330,8 +331,9 @@ CONFIGURATION
330331
-------------
331332
You can specify extra mail header lines to be added to each message,
332333
defaults for the subject prefix and file suffix, number patches when
333-
outputting more than one patch, add "To" or "Cc:" headers, configure
334-
attachments, and sign off patches with configuration variables.
334+
outputting more than one patch, add "To:" or "Cc:" headers, configure
335+
attachments, change the patch output directory, and sign off patches
336+
with configuration variables.
335337

336338
------------
337339
[format]
@@ -343,7 +345,8 @@ attachments, and sign off patches with configuration variables.
343345
cc = <email>
344346
attach [ = mime-boundary-string ]
345347
signOff = true
346-
coverletter = auto
348+
outputDirectory = <directory>
349+
coverLetter = auto
347350
------------
348351

349352

0 commit comments

Comments
 (0)