blob: 9d0a10c562c40f0992eb1105cf7543b8813f11b5 [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--------
11'git-send-email' [options] <file|directory> [... file|directory]
12
13
14
15DESCRIPTION
16-----------
17Takes the patches given on the command line and emails them out.
18
19The header of the email is configurable by command line options. If not
20specified on the command line, the user will be prompted with a ReadLine
21enabled interface to provide the necessary information.
22
23OPTIONS
24-------
25The options available are:
26
Junio C Hamano97f518c2006-06-22 19:49:3527--bcc::
28Specify a "Bcc:" value for each email.
Junio C Hamanoa3fd83c2007-03-02 10:34:3629+
30The --bcc option must be repeated for each user you want on the bcc list.
Junio C Hamano97f518c2006-06-22 19:49:3531
Junio C Hamanoc9154122006-02-15 02:22:0632--cc::
33Specify a starting "Cc:" value for each email.
Junio C Hamanoa3fd83c2007-03-02 10:34:3634+
35The --cc option must be repeated for each user you want on the cc list.
Junio C Hamano97f518c2006-06-22 19:49:3536
Junio C Hamanoc5653d72007-09-02 06:25:1637--cc-cmd::
38Specify a command to execute once per patch file which
39should generate patch file specific "Cc:" entries.
40Output of this command must be single email address per line.
41Default is the value of 'sendemail.cccmd' configuration value.
42
Junio C Hamano1a4e8412005-12-27 08:17:2343--chain-reply-to, --no-chain-reply-to::
44If this is set, each email will be sent as a reply to the previous
45email sent. If disabled with "--no-chain-reply-to", all emails after
46the first will be sent as replies to the first email sent. When using
47this, it is recommended that the first file given be an overview of the
48entire patch series.
Junio C Hamanoc51fede2007-03-12 07:29:2049Default is the value of the 'sendemail.chainreplyto' configuration
50value; if that is unspecified, default to --chain-reply-to.
Junio C Hamano1a4e8412005-12-27 08:17:2351
Junio C Hamano86f75882006-02-06 02:27:2352--compose::
Junio C Hamanof6002a92007-07-20 10:28:2253Use $GIT_EDITOR, core.editor, $VISUAL, or $EDITOR to edit an
54introductory message for the patch series.
Junio C Hamano86f75882006-02-06 02:27:2355
56--from::
57Specify the sender of the emails. This will default to
58the value GIT_COMMITTER_IDENT, as returned by "git-var -l".
59The user will still be prompted to confirm this entry.
60
61--in-reply-to::
62Specify the contents of the first In-Reply-To header.
Junio C Hamanob63afff2007-05-01 03:05:5563Subsequent emails will refer to the previous email
Junio C Hamano86f75882006-02-06 02:27:2364instead of this if --chain-reply-to is set (the default)
65Only necessary if --compose is also set. If --compose
66is not set, this will be prompted for.
67
Junio C Hamano6865ebd2007-06-28 08:16:1468--signed-off-by-cc, --no-signed-off-by-cc::
69 If this is set, add emails found in Signed-off-by: or Cc: lines to the
70 cc list.
Junio C Hamano1b11dcb2007-08-18 07:20:5571 Default is the value of 'sendemail.signedoffcc' configuration value;
Junio C Hamano6865ebd2007-06-28 08:16:1472 if that is unspecified, default to --signed-off-by-cc.
Junio C Hamanoc9154122006-02-15 02:22:0673
Junio C Hamano86f75882006-02-06 02:27:2374--quiet::
75Make git-send-email less verbose. One line per email should be
76all that is output.
77
Junio C Hamano68522892007-09-06 01:33:4178--identity::
79A configuration identity. When given, causes values in the
80'sendemail.<identity>' subsection to take precedence over
81values in the 'sendemail' section. The default identity is
82the value of 'sendemail.identity'.
83
Junio C Hamano1a4e8412005-12-27 08:17:2384--smtp-server::
Junio C Hamanob63afff2007-05-01 03:05:5585If set, specifies the outgoing SMTP server to use (e.g.
86`smtp.example.com` or a raw IP address). Alternatively it can
87specify a full pathname of a sendmail-like program instead;
Junio C Hamanob19b4f02006-10-29 20:47:2288the program must support the `-i` option. Default value can
89be specified by the 'sendemail.smtpserver' configuration
90option; the built-in default is `/usr/sbin/sendmail` or
91`/usr/lib/sendmail` if such program is available, or
92`localhost` otherwise.
Junio C Hamano1a4e8412005-12-27 08:17:2393
Junio C Hamano4fd58d42007-09-30 00:51:1494--smtp-server-port::
95Specifies a port different from the default port (SMTP
96servers typically listen to smtp port 25 and ssmtp port
97465).
98
Junio C Hamano9c334152008-02-12 03:18:5299--smtp-user::
100Username for SMTP-AUTH. In place of this option, the following
101configuration variables can be specified:
102+
103--
104* sendemail.smtpuser
105* sendemail.<identity>.smtpuser (see sendemail.identity).
106--
107+
108However, --smtp-user always overrides these variables.
109+
110If a username is not specified (with --smtp-user or a
111configuration variable), then authentication is not attempted.
112
113--smtp-pass::
114Password for SMTP-AUTH. The argument is optional: If no
115argument is specified, then the empty string is used as
116the password.
117+
118In place of this option, the following configuration variables
119can be specified:
120+
121--
122* sendemail.smtppass
123* sendemail.<identity>.smtppass (see sendemail.identity).
124--
125+
126However, --smtp-pass always overrides these variables.
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 configuration variable), but no password has been
131specified (with --smtp-pass or a configuration variable), then the
132user is prompted for a password while the input is masked for privacy.
Junio C Hamano68522892007-09-06 01:33:41133
134--smtp-ssl::
135If set, connects to the SMTP server using SSL.
136Default is the value of the 'sendemail.smtpssl' configuration value;
137if that is unspecified, does not use SSL.
138
Junio C Hamano86f75882006-02-06 02:27:23139--subject::
Junio C Hamanoa77a5132007-06-08 16:13:44140Specify the initial subject of the email thread.
Junio C Hamano86f75882006-02-06 02:27:23141Only necessary if --compose is also set. If --compose
142is not set, this will be prompted for.
143
Junio C Hamano6865ebd2007-06-28 08:16:14144--suppress-from, --no-suppress-from::
Junio C Hamano422cfec2007-11-08 08:07:45145 If this is set, do not add the From: address to the cc: list.
Junio C Hamano6865ebd2007-06-28 08:16:14146 Default is the value of 'sendemail.suppressfrom' configuration value;
Junio C Hamanocae86272007-08-21 02:20:49147 if that is unspecified, default to --no-suppress-from.
Junio C Hamanoc9154122006-02-15 02:22:06148
Junio C Hamano9c334152008-02-12 03:18:52149--suppress-cc::
150Specify an additional category of recipients to suppress the
151auto-cc of. 'self' will avoid including the sender, 'author' will
152avoid including the patch author, 'cc' will avoid including anyone
153mentioned in Cc lines in the patch, 'sob' will avoid including
154anyone mentioned in Signed-off-by lines, and 'cccmd' will avoid
155running the --cc-cmd. 'all' will suppress all auto cc values.
156Default is the value of 'sendemail.suppresscc' configuration value;
157if that is unspecified, default to 'self' if --suppress-from is
158specified, as well as 'sob' if --no-signed-off-cc is specified.
159
Junio C Hamano6865ebd2007-06-28 08:16:14160--thread, --no-thread::
Junio C Hamanoddc5ad42007-06-27 07:14:52161If this is set, the In-Reply-To header will be set on each email sent.
Junio C Hamano6865ebd2007-06-28 08:16:14162If disabled with "--no-thread", no emails will have the In-Reply-To
Junio C Hamanoddc5ad42007-06-27 07:14:52163header set.
Junio C Hamano6865ebd2007-06-28 08:16:14164Default is the value of the 'sendemail.thread' configuration value;
165if that is unspecified, default to --thread.
Junio C Hamanoddc5ad42007-06-27 07:14:52166
Junio C Hamano45889b42007-04-26 07:20:04167--dry-run::
168Do everything except actually send the emails.
169
170--envelope-sender::
171Specify the envelope sender used to send the emails.
172This is useful if your default address is not the address that is
173subscribed to a list. If you use the sendmail binary, you must have
174suitable privileges for the -f parameter.
175
Junio C Hamano86f75882006-02-06 02:27:23176--to::
177Specify the primary recipient of the emails generated.
178Generally, this will be the upstream maintainer of the
179project involved.
Junio C Hamanof7bb6692008-01-27 08:23:46180Default is the value of the 'sendemail.to' configuration value;
181if that is unspecified, this will be prompted for.
Junio C Hamanoa3fd83c2007-03-02 10:34:36182+
183The --to option must be repeated for each user you want on the to list.
Junio C Hamano97f518c2006-06-22 19:49:35184
Junio C Hamano1a4e8412005-12-27 08:17:23185
Junio C Hamanoc51fede2007-03-12 07:29:20186CONFIGURATION
187-------------
Junio C Hamano68522892007-09-06 01:33:41188sendemail.identity::
189The default configuration identity. When specified,
190'sendemail.<identity>.<item>' will have higher precedence than
191'sendemail.<item>'. This is useful to declare multiple SMTP
192identities and to hoist sensitive authentication information
Junio C Hamanofe986052007-12-19 07:33:38193out of the repository and into the global configuration file.
Junio C Hamano68522892007-09-06 01:33:41194
Junio C Hamanoc51fede2007-03-12 07:29:20195sendemail.aliasesfile::
196To avoid typing long email addresses, point this to one or more
197email aliases files. You must also supply 'sendemail.aliasfiletype'.
198
199sendemail.aliasfiletype::
200Format of the file(s) specified in sendemail.aliasesfile. Must be
201one of 'mutt', 'mailrc', 'pine', or 'gnus'.
202
Junio C Hamanoc2b47092007-10-25 06:50:31203sendemail.to::
204Email address (or alias) to always send to.
205
Junio C Hamanoc5653d72007-09-02 06:25:16206sendemail.cccmd::
207Command to execute to generate per patch file specific "Cc:"s.
208
Junio C Hamanoc51fede2007-03-12 07:29:20209sendemail.bcc::
210Email address (or alias) to always bcc.
211
212sendemail.chainreplyto::
213Boolean value specifying the default to the '--chain_reply_to'
214parameter.
215
216sendemail.smtpserver::
Junio C Hamano68522892007-09-06 01:33:41217Default SMTP server to use.
218
Junio C Hamanod04b60c2008-03-20 08:46:04219sendemail.smtpserverport::
220Default SMTP server port to use.
221
Junio C Hamano68522892007-09-06 01:33:41222sendemail.smtpuser::
223Default SMTP-AUTH username.
224
225sendemail.smtppass::
226Default SMTP-AUTH password.
227
228sendemail.smtpssl::
229Boolean value specifying the default to the '--smtp-ssl' parameter.
Junio C Hamanoc51fede2007-03-12 07:29:20230
Junio C Hamano1a4e8412005-12-27 08:17:23231Author
232------
233Written by Ryan Anderson <ryan@michonline.com>
234
235git-send-email is originally based upon
236send_lots_of_email.pl by Greg Kroah-Hartman.
237
238Documentation
239--------------
240Documentation by Ryan Anderson
241
242GIT
243---
Junio C Hamano35738e82008-01-07 07:55:46244Part of the linkgit:git[7] suite