]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-send-email.txt
Docs: send-email: Create logical groupings for --help text
[thirdparty/git.git] / Documentation / git-send-email.txt
CommitLineData
215a7ad1
JH
1git-send-email(1)
2=================
479cec96
RA
3
4NAME
5----
215a7ad1 6git-send-email - Send a collection of patches as emails
479cec96
RA
7
8
9SYNOPSIS
10--------
b1889c36 11'git send-email' [options] <file|directory> [... file|directory]
479cec96
RA
12
13
479cec96
RA
14DESCRIPTION
15-----------
16Takes the patches given on the command line and emails them out.
17
18The header of the email is configurable by command line options. If not
19specified on the command line, the user will be prompted with a ReadLine
20enabled interface to provide the necessary information.
21
df8baa42
JF
22OPTIONS
23-------
479cec96
RA
24The options available are:
25
79ee555b 26--bcc::
3971a973
MW
27 Specify a "Bcc:" value for each email. Default is the value of
28 'sendemail.bcc'.
5ef1f8d4
SV
29+
30The --bcc option must be repeated for each user you want on the bcc list.
79ee555b 31
da140f8b
RA
32--cc::
33 Specify a starting "Cc:" value for each email.
5ef1f8d4
SV
34+
35The --cc option must be repeated for each user you want on the cc list.
79ee555b 36
324a8bd0
JP
37--cc-cmd::
38 Specify a command to execute once per patch file which
39 should generate patch file specific "Cc:" entries.
40 Output of this command must be single email address per line.
41 Default is the value of 'sendemail.cccmd' configuration value.
42
7ecbad91 43--[no-]chain-reply-to::
2718435b
RA
44 If this is set, each email will be sent as a reply to the previous
45 email sent. If disabled with "--no-chain-reply-to", all emails after
46 the first will be sent as replies to the first email sent. When using
47 this, it is recommended that the first file given be an overview of the
73811e66
MW
48 entire patch series. Default is the value of the 'sendemail.chainreplyto'
49 configuration value; if that is unspecified, default to --chain-reply-to.
2718435b
RA
50
51--compose::
ef0c2abf
AR
52 Use $GIT_EDITOR, core.editor, $VISUAL, or $EDITOR to edit an
53 introductory message for the patch series.
479cec96 54
73811e66
MW
55--dry-run::
56 Do everything except actually send the emails.
57
58--envelope-sender::
59 Specify the envelope sender used to send the emails.
60 This is useful if your default address is not the address that is
61 subscribed to a list. If you use the sendmail binary, you must have
62 suitable privileges for the -f parameter. Default is the value of
63 the 'sendemail.envelopesender' configuration variable; if that is
64 unspecified, choosing the envelope sender is left to your MTA.
65
df8baa42 66--from::
479cec96 67 Specify the sender of the emails. This will default to
5354a56f 68 the value GIT_COMMITTER_IDENT, as returned by "git var -l".
479cec96
RA
69 The user will still be prompted to confirm this entry.
70
73811e66
MW
71--identity::
72 A configuration identity. When given, causes values in the
73 'sendemail.<identity>' subsection to take precedence over
74 values in the 'sendemail' section. The default identity is
75 the value of 'sendemail.identity'.
76
df8baa42 77--in-reply-to::
479cec96 78 Specify the contents of the first In-Reply-To header.
928a5590 79 Subsequent emails will refer to the previous email
f9e320c3
RA
80 instead of this if --chain-reply-to is set (the default)
81 Only necessary if --compose is also set. If --compose
82 is not set, this will be prompted for.
479cec96 83
2718435b
RA
84--quiet::
85 Make git-send-email less verbose. One line per email should be
86 all that is output.
a6d62cdd 87
73811e66 88--[no-]signed-off-by-cc::
3971a973
MW
89 If this is set, add emails found in Signed-off-by: or Cc: lines to the
90 cc list. Default is the value of 'sendemail.signedoffcc' configuration
91 value; if that is unspecified, default to --signed-off-by-cc.
73811e66
MW
92
93--smtp-encryption::
94 Specify the encryption to use, either 'ssl' or 'tls'. Any other
95 value reverts to plain SMTP. Default is the value of
96 'sendemail.smtpencryption'.
97
98--smtp-pass::
99 Password for SMTP-AUTH. The argument is optional: If no
100 argument is specified, then the empty string is used as
3971a973
MW
101 the password. Default is the value of 'sendemail.smtppass',
102 however '--smtp-pass' always overrides this value.
73811e66
MW
103+
104Furthermore, passwords need not be specified in configuration files
105or on the command line. If a username has been specified (with
3971a973
MW
106'--smtp-user' or a 'sendemail.smtpuser'), but no password has been
107specified (with '--smtp-pass' or 'sendemail.smtppass'), then the
73811e66 108user is prompted for a password while the input is masked for privacy.
34cc60ce 109
df8baa42 110--smtp-server::
928a5590
JA
111 If set, specifies the outgoing SMTP server to use (e.g.
112 `smtp.example.com` or a raw IP address). Alternatively it can
113 specify a full pathname of a sendmail-like program instead;
6dcfa306
SV
114 the program must support the `-i` option. Default value can
115 be specified by the 'sendemail.smtpserver' configuration
116 option; the built-in default is `/usr/sbin/sendmail` or
117 `/usr/lib/sendmail` if such program is available, or
118 `localhost` otherwise.
a6d62cdd 119
44b2476a
JH
120--smtp-server-port::
121 Specifies a port different from the default port (SMTP
122 servers typically listen to smtp port 25 and ssmtp port
3971a973 123 465). This can be set with 'sendemail.smtpserverport'.
44b2476a 124
73811e66 125--smtp-ssl::
3971a973 126 Legacy alias for '--smtp-encryption ssl'.
73811e66 127
2363d746 128--smtp-user::
3971a973
MW
129 Username for SMTP-AUTH. Default is the value of 'sendemail.smtpuser';
130 if a username is not specified (with '--smtp-user' or 'sendemail.smtpuser'),
131 then authentication is not attempted.
2363d746 132
2718435b 133--subject::
a6080a0a 134 Specify the initial subject of the email thread.
2718435b
RA
135 Only necessary if --compose is also set. If --compose
136 is not set, this will be prompted for.
137
65648283
DB
138--suppress-cc::
139 Specify an additional category of recipients to suppress the
140 auto-cc of. 'self' will avoid including the sender, 'author' will
141 avoid including the patch author, 'cc' will avoid including anyone
142 mentioned in Cc lines in the patch, 'sob' will avoid including
143 anyone mentioned in Signed-off-by lines, and 'cccmd' will avoid
144 running the --cc-cmd. 'all' will suppress all auto cc values.
145 Default is the value of 'sendemail.suppresscc' configuration value;
146 if that is unspecified, default to 'self' if --suppress-from is
147 specified, as well as 'sob' if --no-signed-off-cc is specified.
148
73811e66
MW
149--[no-]suppress-from::
150 If this is set, do not add the From: address to the cc: list.
151 Default is the value of 'sendemail.suppressfrom' configuration
152 value; if that is unspecified, default to --no-suppress-from.
153
7ecbad91 154--[no-]thread::
e46f7a0e 155 If this is set, the In-Reply-To header will be set on each email sent.
5483c71d 156 If disabled with "--no-thread", no emails will have the In-Reply-To
73811e66
MW
157 header set. Default is the value of the 'sendemail.thread' configuration
158 value; if that is unspecified, default to --thread.
e46f7a0e 159
73811e66
MW
160--to::
161 Specify the primary recipient of the emails generated. Generally, this
162 will be the upstream maintainer of the project involved. Default is the
163 value of the 'sendemail.to' configuration value; if that is unspecified,
164 this will be prompted for.
165+
166The --to option must be repeated for each user you want on the to list.
03044a98 167
dbf5e1e9
MW
168--[no-]validate::
169 Perform sanity checks on patches.
7ecbad91
MW
170 Currently, validation means the following:
171+
172--
173 * Warn of patches that contain lines longer than 998 characters; this
174 is due to SMTP limits as described by http://www.ietf.org/rfc/rfc2821.txt.
175--
dbf5e1e9 176+
3971a973
MW
177Default is the value of 'sendemail.validate'; if this is not set,
178default to '--validate'.
7ecbad91 179
a6d62cdd 180
fc095242
AK
181CONFIGURATION
182-------------
183sendemail.aliasesfile::
184 To avoid typing long email addresses, point this to one or more
185 email aliases files. You must also supply 'sendemail.aliasfiletype'.
186
187sendemail.aliasfiletype::
188 Format of the file(s) specified in sendemail.aliasesfile. Must be
189 one of 'mutt', 'mailrc', 'pine', or 'gnus'.
190
479cec96
RA
191Author
192------
193Written by Ryan Anderson <ryan@michonline.com>
194
215a7ad1 195git-send-email is originally based upon
479cec96
RA
196send_lots_of_email.pl by Greg Kroah-Hartman.
197
198Documentation
199--------------
200Documentation by Ryan Anderson
201
202GIT
203---
9e1f0a85 204Part of the linkgit:git[1] suite