blob: ced35b2f532dde3580f162a0c23b642002a0e508 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-send-email(1)
2=================
3
4NAME
5----
6git-send-email - Send a collection of patches as emails
7
8
9SYNOPSIS
10--------
Junio C Hamano610d1762008-11-28 06:27:1311'git send-email' [options] <file|directory|rev-list options>...
Junio C Hamano1a4e8412005-12-27 08:17:2312
13
Junio C Hamano1a4e8412005-12-27 08:17:2314DESCRIPTION
15-----------
16Takes the patches given on the command line and emails them out.
Junio C Hamanob95b43d2009-06-12 08:57:2817Patches can be specified as files, directories (which will send all
18files in the directory), or directly as a revision list. In the
19last case, any format accepted by linkgit:git-format-patch[1] can
20be passed to git send-email.
Junio C Hamano1a4e8412005-12-27 08:17:2321
22The header of the email is configurable by command line options. If not
23specified on the command line, the user will be prompted with a ReadLine
24enabled interface to provide the necessary information.
25
Junio C Hamanoa6455f62009-02-20 08:33:0826There are two formats accepted for patch files:
27
281. mbox format files
29+
30This is what linkgit:git-format-patch[1] generates. Most headers and MIME
31formatting are ignored.
32
332. The original format used by Greg Kroah-Hartman's 'send_lots_of_email.pl'
34script
35+
36This format expects the first line of the file to contain the "Cc:" value
37and the "Subject:" of the message as the second line.
38
Junio C Hamanoa476efa2008-10-10 15:31:4239
Junio C Hamano1a4e8412005-12-27 08:17:2340OPTIONS
41-------
Junio C Hamanoa476efa2008-10-10 15:31:4242
43Composing
44~~~~~~~~~
Junio C Hamano1a4e8412005-12-27 08:17:2345
Junio C Hamano3d141512009-06-01 01:22:4046--annotate::
47Review and edit each patch you're about to send. See the
48CONFIGURATION section for 'sendemail.multiedit'.
49
Junio C Hamanob4a9ede2009-04-08 07:36:3250--bcc=<address>::
Junio C Hamanoa476efa2008-10-10 15:31:4251Specify a "Bcc:" value for each email. Default is the value of
52'sendemail.bcc'.
Junio C Hamanoa3fd83c2007-03-02 10:34:3653+
54The --bcc option must be repeated for each user you want on the bcc list.
Junio C Hamano97f518c2006-06-22 19:49:3555
Junio C Hamanob4a9ede2009-04-08 07:36:3256--cc=<address>::
Junio C Hamanoc9154122006-02-15 02:22:0657Specify a starting "Cc:" value for each email.
Junio C Hamano1d40ee82009-01-07 10:14:1658Default is the value of 'sendemail.cc'.
Junio C Hamanoa3fd83c2007-03-02 10:34:3659+
60The --cc option must be repeated for each user you want on the cc list.
Junio C Hamano97f518c2006-06-22 19:49:3561
Junio C Hamano86f75882006-02-06 02:27:2362--compose::
Junio C Hamano3b70d3c2009-11-21 17:37:3763Invoke a text editor (see GIT_EDITOR in linkgit:git-var[1])
64to edit an introductory message for the patch series.
Junio C Hamano610d1762008-11-28 06:27:1365+
Junio C Hamanoea82cff2009-03-18 01:54:4866When '--compose' is used, git send-email will use the From, Subject, and
67In-Reply-To headers specified in the message. If the body of the message
68(what you type after the headers and a blank line) only contains blank
69(or GIT: prefixed) lines the summary won't be sent, but From, Subject,
70and In-Reply-To headers will be used unless they are removed.
Junio C Hamano610d1762008-11-28 06:27:1371+
Junio C Hamanoea82cff2009-03-18 01:54:4872Missing From or In-Reply-To headers will be prompted for.
Junio C Hamano3d141512009-06-01 01:22:4073+
74See the CONFIGURATION section for 'sendemail.multiedit'.
Junio C Hamano86f75882006-02-06 02:27:2375
Junio C Hamanob4a9ede2009-04-08 07:36:3276--from=<address>::
Junio C Hamano7ae18252009-05-23 09:53:3277Specify the sender of the emails. If not specified on the command line,
78the value of the 'sendemail.from' configuration option is used. If
79neither the command line option nor 'sendemail.from' are set, then the
80user will be prompted for the value. The default for the prompt will be
81the value of GIT_AUTHOR_IDENT, or GIT_COMMITTER_IDENT if that is not
82set, as returned by "git var -l".
Junio C Hamano86f75882006-02-06 02:27:2383
Junio C Hamanob4a9ede2009-04-08 07:36:3284--in-reply-to=<identifier>::
Junio C Hamano86f75882006-02-06 02:27:2385Specify the contents of the first In-Reply-To header.
Junio C Hamanob63afff2007-05-01 03:05:5586Subsequent emails will refer to the previous email
Junio C Hamano096dde22009-12-26 23:14:1187instead of this if --chain-reply-to is set.
Junio C Hamano86f75882006-02-06 02:27:2388Only necessary if --compose is also set. If --compose
89is not set, this will be prompted for.
90
Junio C Hamanob4a9ede2009-04-08 07:36:3291--subject=<string>::
Junio C Hamanoa476efa2008-10-10 15:31:4292Specify the initial subject of the email thread.
93Only necessary if --compose is also set. If --compose
94is not set, this will be prompted for.
Junio C Hamanoc9154122006-02-15 02:22:0695
Junio C Hamanob4a9ede2009-04-08 07:36:3296--to=<address>::
Junio C Hamanoa476efa2008-10-10 15:31:4297Specify the primary recipient of the emails generated. Generally, this
98will be the upstream maintainer of the project involved. Default is the
99value of the 'sendemail.to' configuration value; if that is unspecified,
100this will be prompted for.
101+
102The --to option must be repeated for each user you want on the to list.
Junio C Hamano86f75882006-02-06 02:27:23103
Junio C Hamanoa476efa2008-10-10 15:31:42104
105Sending
106~~~~~~~
107
Junio C Hamanob4a9ede2009-04-08 07:36:32108--envelope-sender=<address>::
Junio C Hamanoa476efa2008-10-10 15:31:42109Specify the envelope sender used to send the emails.
110This is useful if your default address is not the address that is
Junio C Hamano2bd8a742009-12-01 21:16:59111subscribed to a list. In order to use the 'From' address, set the
112value to "auto". If you use the sendmail binary, you must have
113suitable privileges for the -f parameter. Default is the value of the
114'sendemail.envelopesender' configuration variable; if that is
Junio C Hamanoa476efa2008-10-10 15:31:42115unspecified, choosing the envelope sender is left to your MTA.
116
Junio C Hamanob4a9ede2009-04-08 07:36:32117--smtp-encryption=<encryption>::
Junio C Hamanoa476efa2008-10-10 15:31:42118Specify the encryption to use, either 'ssl' or 'tls'. Any other
119value reverts to plain SMTP. Default is the value of
120'sendemail.smtpencryption'.
121
Junio C Hamanob4a9ede2009-04-08 07:36:32122--smtp-pass[=<password>]::
Junio C Hamanoa476efa2008-10-10 15:31:42123Password for SMTP-AUTH. The argument is optional: If no
124argument is specified, then the empty string is used as
125the password. Default is the value of 'sendemail.smtppass',
126however '--smtp-pass' always overrides this value.
127+
128Furthermore, passwords need not be specified in configuration files
129or on the command line. If a username has been specified (with
130'--smtp-user' or a 'sendemail.smtpuser'), but no password has been
131specified (with '--smtp-pass' or 'sendemail.smtppass'), then the
132user is prompted for a password while the input is masked for privacy.
Junio C Hamano68522892007-09-06 01:33:41133
Junio C Hamanob4a9ede2009-04-08 07:36:32134--smtp-server=<host>::
Junio C Hamanob63afff2007-05-01 03:05:55135If set, specifies the outgoing SMTP server to use (e.g.
136`smtp.example.com` or a raw IP address). Alternatively it can
137specify a full pathname of a sendmail-like program instead;
Junio C Hamanob19b4f02006-10-29 20:47:22138the program must support the `-i` option. Default value can
139be specified by the 'sendemail.smtpserver' configuration
140option; the built-in default is `/usr/sbin/sendmail` or
141`/usr/lib/sendmail` if such program is available, or
142`localhost` otherwise.
Junio C Hamano1a4e8412005-12-27 08:17:23143
Junio C Hamanob4a9ede2009-04-08 07:36:32144--smtp-server-port=<port>::
Junio C Hamano4fd58d42007-09-30 00:51:14145Specifies a port different from the default port (SMTP
Junio C Hamanobacccda2009-08-03 08:07:12146servers typically listen to smtp port 25, but may also listen to
147submission port 587, or the common SSL smtp port 465);
148symbolic port names (e.g. "submission" instead of 587)
Junio C Hamano3d141512009-06-01 01:22:40149are also accepted. The port can also be set with the
150'sendemail.smtpserverport' configuration variable.
Junio C Hamanofce7c7e2008-07-02 03:06:38151
Junio C Hamano68522892007-09-06 01:33:41152--smtp-ssl::
Junio C Hamanoa476efa2008-10-10 15:31:42153Legacy alias for '--smtp-encryption ssl'.
Junio C Hamano68522892007-09-06 01:33:41154
Junio C Hamanob4a9ede2009-04-08 07:36:32155--smtp-user=<user>::
Junio C Hamanoa476efa2008-10-10 15:31:42156Username for SMTP-AUTH. Default is the value of 'sendemail.smtpuser';
157if a username is not specified (with '--smtp-user' or 'sendemail.smtpuser'),
158then authentication is not attempted.
Junio C Hamano86f75882006-02-06 02:27:23159
Junio C Hamanoa476efa2008-10-10 15:31:42160
161Automating
162~~~~~~~~~~
163
Junio C Hamanob4a9ede2009-04-08 07:36:32164--cc-cmd=<command>::
Junio C Hamanoa476efa2008-10-10 15:31:42165Specify a command to execute once per patch file which
166should generate patch file specific "Cc:" entries.
167Output of this command must be single email address per line.
168Default is the value of 'sendemail.cccmd' configuration value.
169
Junio C Hamano25e7ba62009-06-14 01:03:22170--[no-]chain-reply-to::
Junio C Hamanoa476efa2008-10-10 15:31:42171If this is set, each email will be sent as a reply to the previous
172email sent. If disabled with "--no-chain-reply-to", all emails after
173the first will be sent as replies to the first email sent. When using
174this, it is recommended that the first file given be an overview of the
Junio C Hamano096dde22009-12-26 23:14:11175entire patch series. Disabled by default, but the 'sendemail.chainreplyto'
176configuration variable can be used to enable it.
Junio C Hamanoa476efa2008-10-10 15:31:42177
Junio C Hamanob4a9ede2009-04-08 07:36:32178--identity=<identity>::
Junio C Hamanoa476efa2008-10-10 15:31:42179A configuration identity. When given, causes values in the
180'sendemail.<identity>' subsection to take precedence over
181values in the 'sendemail' section. The default identity is
182the value of 'sendemail.identity'.
183
184--[no-]signed-off-by-cc::
185If this is set, add emails found in Signed-off-by: or Cc: lines to the
186cc list. Default is the value of 'sendemail.signedoffbycc' configuration
187value; if that is unspecified, default to --signed-off-by-cc.
Junio C Hamanoc9154122006-02-15 02:22:06188
Junio C Hamanob4a9ede2009-04-08 07:36:32189--suppress-cc=<category>::
Junio C Hamano9c334152008-02-12 03:18:52190Specify an additional category of recipients to suppress the
Junio C Hamano0a235222009-03-06 08:21:09191auto-cc of:
192+
193--
194- 'author' will avoid including the patch author
195- 'self' will avoid including the sender
196- 'cc' will avoid including anyone mentioned in Cc lines in the patch header
197 except for self (use 'self' for that).
Junio C Hamano0e88f3e2009-06-21 08:03:25198- 'bodycc' will avoid including anyone mentioned in Cc lines in the
Junio C Hamano0a235222009-03-06 08:21:09199 patch body (commit message) except for self (use 'self' for that).
200- 'sob' will avoid including anyone mentioned in Signed-off-by lines except
201 for self (use 'self' for that).
202- 'cccmd' will avoid running the --cc-cmd.
Junio C Hamano0e88f3e2009-06-21 08:03:25203- 'body' is equivalent to 'sob' + 'bodycc'
Junio C Hamano0a235222009-03-06 08:21:09204- 'all' will suppress all auto cc values.
205--
206+
207Default is the value of 'sendemail.suppresscc' configuration value; if
208that is unspecified, default to 'self' if --suppress-from is
209specified, as well as 'body' if --no-signed-off-cc is specified.
Junio C Hamano9c334152008-02-12 03:18:52210
Junio C Hamanoa476efa2008-10-10 15:31:42211--[no-]suppress-from::
212If this is set, do not add the From: address to the cc: list.
213Default is the value of 'sendemail.suppressfrom' configuration
214value; if that is unspecified, default to --no-suppress-from.
215
216--[no-]thread::
Junio C Hamano1bbd0f42009-07-23 06:20:29217If this is set, the In-Reply-To and References headers will be
218added to each email sent. Whether each mail refers to the
219previous email (`deep` threading per 'git format-patch'
220wording) or to the first email (`shallow` threading) is
221governed by "--[no-]chain-reply-to".
222+
223If disabled with "--no-thread", those headers will not be added
224(unless specified with --in-reply-to). Default is the value of the
225'sendemail.thread' configuration value; if that is unspecified,
226default to --thread.
227+
228It is up to the user to ensure that no In-Reply-To header already
229exists when 'git send-email' is asked to add it (especially note that
230'git format-patch' can be configured to do the threading itself).
231Failure to do so may not produce the expected result in the
232recipient's MUA.
Junio C Hamanoa476efa2008-10-10 15:31:42233
234
235Administering
236~~~~~~~~~~~~~
Junio C Hamanoddc5ad42007-06-27 07:14:52237
Junio C Hamanob4a9ede2009-04-08 07:36:32238--confirm=<mode>::
Junio C Hamano0a235222009-03-06 08:21:09239Confirm just before sending:
240+
241--
242- 'always' will always confirm before sending
243- 'never' will never confirm before sending
244- 'cc' will confirm before sending when send-email has automatically
245 added addresses from the patch to the Cc list
246- 'compose' will confirm before sending the first message when using --compose.
247- 'auto' is equivalent to 'cc' + 'compose'
248--
249+
250Default is the value of 'sendemail.confirm' configuration value; if that
251is unspecified, default to 'auto' unless any of the suppress options
252have been specified, in which case default to 'compose'.
253
Junio C Hamano45889b42007-04-26 07:20:04254--dry-run::
255Do everything except actually send the emails.
256
Junio C Hamano3d141512009-06-01 01:22:40257--[no-]format-patch::
258When an argument may be understood either as a reference or as a file name,
259choose to understand it as a format-patch argument ('--format-patch')
260or as a file name ('--no-format-patch'). By default, when such a conflict
261occurs, git send-email will fail.
262
Junio C Hamanoa476efa2008-10-10 15:31:42263--quiet::
264Make git-send-email less verbose. One line per email should be
265all that is output.
Junio C Hamano45889b42007-04-26 07:20:04266
Junio C Hamanoa476efa2008-10-10 15:31:42267--[no-]validate::
268Perform sanity checks on patches.
269Currently, validation means the following:
Junio C Hamanoa3fd83c2007-03-02 10:34:36270+
Junio C Hamanoa476efa2008-10-10 15:31:42271--
272* Warn of patches that contain lines longer than 998 characters; this
273is due to SMTP limits as described by http://www.ietf.org/rfc/rfc2821.txt.
274--
275+
276Default is the value of 'sendemail.validate'; if this is not set,
277default to '--validate'.
Junio C Hamano97f518c2006-06-22 19:49:35278
Junio C Hamano1a4e8412005-12-27 08:17:23279
Junio C Hamanoc51fede2007-03-12 07:29:20280CONFIGURATION
281-------------
Junio C Hamano68522892007-09-06 01:33:41282
Junio C Hamanoc51fede2007-03-12 07:29:20283sendemail.aliasesfile::
284To avoid typing long email addresses, point this to one or more
285email aliases files. You must also supply 'sendemail.aliasfiletype'.
286
287sendemail.aliasfiletype::
288Format of the file(s) specified in sendemail.aliasesfile. Must be
Junio C Hamano07738342009-04-23 03:06:56289one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus'.
Junio C Hamanoc51fede2007-03-12 07:29:20290
Junio C Hamano610d1762008-11-28 06:27:13291sendemail.multiedit::
292If true (default), a single editor instance will be spawned to edit
293files you have to edit (patches when '--annotate' is used, and the
294summary when '--compose' is used). If false, files will be edited one
295after the other, spawning a new editor each time.
296
Junio C Hamano0a235222009-03-06 08:21:09297sendemail.confirm::
298Sets the default for whether to confirm before sending. Must be
299one of 'always', 'never', 'cc', 'compose', or 'auto'. See '--confirm'
300in the previous section for the meaning of these values.
301
Junio C Hamanoc51fede2007-03-12 07:29:20302
Junio C Hamano1a4e8412005-12-27 08:17:23303Author
304------
305Written by Ryan Anderson <ryan@michonline.com>
306
307git-send-email is originally based upon
308send_lots_of_email.pl by Greg Kroah-Hartman.
309
Junio C Hamanoa476efa2008-10-10 15:31:42310
Junio C Hamano1a4e8412005-12-27 08:17:23311Documentation
312--------------
313Documentation by Ryan Anderson
314
Junio C Hamanoa476efa2008-10-10 15:31:42315
Junio C Hamano1a4e8412005-12-27 08:17:23316GIT
317---
Junio C Hamanof7c042d2008-06-06 22:50:53318Part of the linkgit:git[1] suite