Skip to content

Commit b2cd17b

Browse files
trastgitster
authored andcommitted
Document negated forms of format-patch --to --cc --add-headers
The negated forms introduced in c426003 (format-patch: add --no-cc, --no-to, and --no-add-headers, 2010-03-07) were not documented anywhere. Add them to the descriptions of the positive forms. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 688f4f2 commit b2cd17b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Documentation/git-format-patch.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,22 @@ will want to ensure that threading is disabled for `git send-email`.
166166
--to=<email>::
167167
Add a `To:` header to the email headers. This is in addition
168168
to any configured headers, and may be used multiple times.
169+
The negated form `--no-to` discards all `To:` headers added so
170+
far (from config or command line).
169171

170172
--cc=<email>::
171173
Add a `Cc:` header to the email headers. This is in addition
172174
to any configured headers, and may be used multiple times.
175+
The negated form `--no-cc` discards all `Cc:` headers added so
176+
far (from config or command line).
173177

174178
--add-header=<header>::
175179
Add an arbitrary header to the email headers. This is in addition
176180
to any configured headers, and may be used multiple times.
177-
For example, `--add-header="Organization: git-foo"`
181+
For example, `--add-header="Organization: git-foo"`.
182+
The negated form `--no-add-header` discards *all* (`To:`,
183+
`Cc:`, and custom) headers added so far from config or command
184+
line.
178185

179186
--cover-letter::
180187
In addition to the patches, generate a cover letter file

0 commit comments

Comments
 (0)