Autogenerated HTML docs for v1.6.6-69-gc18d
[git/jnareb-git.git] / git-send-email.html
bloba9280013e4ffdb5020d0b33acde64e4bf686f604
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <meta name="generator" content="AsciiDoc 8.2.5" />
7 <style type="text/css">
8 /* Debug borders */
9 p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {
11 border: 1px solid red;
15 body {
16 margin: 1em 5% 1em 5%;
19 a {
20 color: blue;
21 text-decoration: underline;
23 a:visited {
24 color: fuchsia;
27 em {
28 font-style: italic;
31 strong {
32 font-weight: bold;
35 tt {
36 color: navy;
39 h1, h2, h3, h4, h5, h6 {
40 color: #527bbd;
41 font-family: sans-serif;
42 margin-top: 1.2em;
43 margin-bottom: 0.5em;
44 line-height: 1.3;
47 h1, h2, h3 {
48 border-bottom: 2px solid silver;
50 h2 {
51 padding-top: 0.5em;
53 h3 {
54 float: left;
56 h3 + * {
57 clear: left;
60 div.sectionbody {
61 font-family: serif;
62 margin-left: 0;
65 hr {
66 border: 1px solid silver;
69 p {
70 margin-top: 0.5em;
71 margin-bottom: 0.5em;
74 pre {
75 padding: 0;
76 margin: 0;
79 span#author {
80 color: #527bbd;
81 font-family: sans-serif;
82 font-weight: bold;
83 font-size: 1.1em;
85 span#email {
87 span#revision {
88 font-family: sans-serif;
91 div#footer {
92 font-family: sans-serif;
93 font-size: small;
94 border-top: 2px solid silver;
95 padding-top: 0.5em;
96 margin-top: 4.0em;
98 div#footer-text {
99 float: left;
100 padding-bottom: 0.5em;
102 div#footer-badges {
103 float: right;
104 padding-bottom: 0.5em;
107 div#preamble,
108 div.tableblock, div.imageblock, div.exampleblock, div.verseblock,
109 div.quoteblock, div.literalblock, div.listingblock, div.sidebarblock,
110 div.admonitionblock {
111 margin-right: 10%;
112 margin-top: 1.5em;
113 margin-bottom: 1.5em;
115 div.admonitionblock {
116 margin-top: 2.5em;
117 margin-bottom: 2.5em;
120 div.content { /* Block element content. */
121 padding: 0;
124 /* Block element titles. */
125 div.title, caption.title {
126 font-family: sans-serif;
127 font-weight: bold;
128 text-align: left;
129 margin-top: 1.0em;
130 margin-bottom: 0.5em;
132 div.title + * {
133 margin-top: 0;
136 td div.title:first-child {
137 margin-top: 0.0em;
139 div.content div.title:first-child {
140 margin-top: 0.0em;
142 div.content + div.title {
143 margin-top: 0.0em;
146 div.sidebarblock > div.content {
147 background: #ffffee;
148 border: 1px solid silver;
149 padding: 0.5em;
152 div.listingblock {
153 margin-right: 0%;
155 div.listingblock > div.content {
156 border: 1px solid silver;
157 background: #f4f4f4;
158 padding: 0.5em;
161 div.quoteblock > div.content {
162 padding-left: 2.0em;
165 div.attribution {
166 text-align: right;
168 div.verseblock + div.attribution {
169 text-align: left;
172 div.admonitionblock .icon {
173 vertical-align: top;
174 font-size: 1.1em;
175 font-weight: bold;
176 text-decoration: underline;
177 color: #527bbd;
178 padding-right: 0.5em;
180 div.admonitionblock td.content {
181 padding-left: 0.5em;
182 border-left: 2px solid silver;
185 div.exampleblock > div.content {
186 border-left: 2px solid silver;
187 padding: 0.5em;
190 div.verseblock div.content {
191 white-space: pre;
194 div.imageblock div.content { padding-left: 0; }
195 div.imageblock img { border: 1px solid silver; }
196 span.image img { border-style: none; }
198 dl {
199 margin-top: 0.8em;
200 margin-bottom: 0.8em;
202 dt {
203 margin-top: 0.5em;
204 margin-bottom: 0;
205 font-style: italic;
207 dd > *:first-child {
208 margin-top: 0;
211 ul, ol {
212 list-style-position: outside;
214 div.olist2 ol {
215 list-style-type: lower-alpha;
218 div.tableblock > table {
219 border: 3px solid #527bbd;
221 thead {
222 font-family: sans-serif;
223 font-weight: bold;
225 tfoot {
226 font-weight: bold;
229 div.hlist {
230 margin-top: 0.8em;
231 margin-bottom: 0.8em;
233 div.hlist td {
234 padding-bottom: 5px;
236 td.hlist1 {
237 vertical-align: top;
238 font-style: italic;
239 padding-right: 0.8em;
241 td.hlist2 {
242 vertical-align: top;
245 @media print {
246 div#footer-badges { display: none; }
249 div#toctitle {
250 color: #527bbd;
251 font-family: sans-serif;
252 font-size: 1.1em;
253 font-weight: bold;
254 margin-top: 1.0em;
255 margin-bottom: 0.1em;
258 div.toclevel1, div.toclevel2, div.toclevel3, div.toclevel4 {
259 margin-top: 0;
260 margin-bottom: 0;
262 div.toclevel2 {
263 margin-left: 2em;
264 font-size: 0.9em;
266 div.toclevel3 {
267 margin-left: 4em;
268 font-size: 0.9em;
270 div.toclevel4 {
271 margin-left: 6em;
272 font-size: 0.9em;
274 include1::./stylesheets/xhtml11-manpage.css[]
275 /* Workarounds for IE6's broken and incomplete CSS2. */
277 div.sidebar-content {
278 background: #ffffee;
279 border: 1px solid silver;
280 padding: 0.5em;
282 div.sidebar-title, div.image-title {
283 font-family: sans-serif;
284 font-weight: bold;
285 margin-top: 0.0em;
286 margin-bottom: 0.5em;
289 div.listingblock div.content {
290 border: 1px solid silver;
291 background: #f4f4f4;
292 padding: 0.5em;
295 div.quoteblock-content {
296 padding-left: 2.0em;
299 div.exampleblock-content {
300 border-left: 2px solid silver;
301 padding-left: 0.5em;
304 /* IE6 sets dynamically generated links as visited. */
305 div#toc a:visited { color: blue; }
306 </style>
307 <title>git-send-email(1)</title>
308 </head>
309 <body>
310 <div id="header">
311 <h1>
312 git-send-email(1) Manual Page
313 </h1>
314 <h2>NAME</h2>
315 <div class="sectionbody">
316 <p>git-send-email -
317 Send a collection of patches as emails
318 </p>
319 </div>
320 </div>
321 <h2>SYNOPSIS</h2>
322 <div class="sectionbody">
323 <div class="para"><p><em>git send-email</em> [options] &lt;file|directory|rev-list options&gt;&#8230;</p></div>
324 </div>
325 <h2 id="_description">DESCRIPTION</h2>
326 <div class="sectionbody">
327 <div class="para"><p>Takes the patches given on the command line and emails them out.
328 Patches can be specified as files, directories (which will send all
329 files in the directory), or directly as a revision list. In the
330 last case, any format accepted by <a href="git-format-patch.html">git-format-patch(1)</a> can
331 be passed to git send-email.</p></div>
332 <div class="para"><p>The header of the email is configurable by command line options. If not
333 specified on the command line, the user will be prompted with a ReadLine
334 enabled interface to provide the necessary information.</p></div>
335 <div class="para"><p>There are two formats accepted for patch files:</p></div>
336 <div class="olist"><ol>
337 <li>
339 mbox format files
340 </p>
341 <div class="para"><p>This is what <a href="git-format-patch.html">git-format-patch(1)</a> generates. Most headers and MIME
342 formatting are ignored.</p></div>
343 </li>
344 <li>
346 The original format used by Greg Kroah-Hartman's <em>send_lots_of_email.pl</em>
347 script
348 </p>
349 <div class="para"><p>This format expects the first line of the file to contain the "Cc:" value
350 and the "Subject:" of the message as the second line.</p></div>
351 </li>
352 </ol></div>
353 </div>
354 <h2 id="_options">OPTIONS</h2>
355 <div class="sectionbody">
356 <h3 id="_composing">Composing</h3><div style="clear:left"></div>
357 <div class="vlist"><dl>
358 <dt>
359 --annotate
360 </dt>
361 <dd>
363 Review and edit each patch you're about to send. See the
364 CONFIGURATION section for <em>sendemail.multiedit</em>.
365 </p>
366 </dd>
367 <dt>
368 --bcc=&lt;address&gt;
369 </dt>
370 <dd>
372 Specify a "Bcc:" value for each email. Default is the value of
373 <em>sendemail.bcc</em>.
374 </p>
375 <div class="para"><p>The --bcc option must be repeated for each user you want on the bcc list.</p></div>
376 </dd>
377 <dt>
378 --cc=&lt;address&gt;
379 </dt>
380 <dd>
382 Specify a starting "Cc:" value for each email.
383 Default is the value of <em>sendemail.cc</em>.
384 </p>
385 <div class="para"><p>The --cc option must be repeated for each user you want on the cc list.</p></div>
386 </dd>
387 <dt>
388 --compose
389 </dt>
390 <dd>
392 Invoke a text editor (see GIT_EDITOR in <a href="git-var.html">git-var(1)</a>)
393 to edit an introductory message for the patch series.
394 </p>
395 <div class="para"><p>When <em>--compose</em> is used, git send-email will use the From, Subject, and
396 In-Reply-To headers specified in the message. If the body of the message
397 (what you type after the headers and a blank line) only contains blank
398 (or GIT: prefixed) lines the summary won't be sent, but From, Subject,
399 and In-Reply-To headers will be used unless they are removed.</p></div>
400 <div class="para"><p>Missing From or In-Reply-To headers will be prompted for.</p></div>
401 <div class="para"><p>See the CONFIGURATION section for <em>sendemail.multiedit</em>.</p></div>
402 </dd>
403 <dt>
404 --from=&lt;address&gt;
405 </dt>
406 <dd>
408 Specify the sender of the emails. If not specified on the command line,
409 the value of the <em>sendemail.from</em> configuration option is used. If
410 neither the command line option nor <em>sendemail.from</em> are set, then the
411 user will be prompted for the value. The default for the prompt will be
412 the value of GIT_AUTHOR_IDENT, or GIT_COMMITTER_IDENT if that is not
413 set, as returned by "git var -l".
414 </p>
415 </dd>
416 <dt>
417 --in-reply-to=&lt;identifier&gt;
418 </dt>
419 <dd>
421 Specify the contents of the first In-Reply-To header.
422 Subsequent emails will refer to the previous email
423 instead of this if --chain-reply-to is set.
424 Only necessary if --compose is also set. If --compose
425 is not set, this will be prompted for.
426 </p>
427 </dd>
428 <dt>
429 --subject=&lt;string&gt;
430 </dt>
431 <dd>
433 Specify the initial subject of the email thread.
434 Only necessary if --compose is also set. If --compose
435 is not set, this will be prompted for.
436 </p>
437 </dd>
438 <dt>
439 --to=&lt;address&gt;
440 </dt>
441 <dd>
443 Specify the primary recipient of the emails generated. Generally, this
444 will be the upstream maintainer of the project involved. Default is the
445 value of the <em>sendemail.to</em> configuration value; if that is unspecified,
446 this will be prompted for.
447 </p>
448 <div class="para"><p>The --to option must be repeated for each user you want on the to list.</p></div>
449 </dd>
450 </dl></div>
451 <h3 id="_sending">Sending</h3><div style="clear:left"></div>
452 <div class="vlist"><dl>
453 <dt>
454 --envelope-sender=&lt;address&gt;
455 </dt>
456 <dd>
458 Specify the envelope sender used to send the emails.
459 This is useful if your default address is not the address that is
460 subscribed to a list. In order to use the <em>From</em> address, set the
461 value to "auto". If you use the sendmail binary, you must have
462 suitable privileges for the -f parameter. Default is the value of the
463 <em>sendemail.envelopesender</em> configuration variable; if that is
464 unspecified, choosing the envelope sender is left to your MTA.
465 </p>
466 </dd>
467 <dt>
468 --smtp-encryption=&lt;encryption&gt;
469 </dt>
470 <dd>
472 Specify the encryption to use, either <em>ssl</em> or <em>tls</em>. Any other
473 value reverts to plain SMTP. Default is the value of
474 <em>sendemail.smtpencryption</em>.
475 </p>
476 </dd>
477 <dt>
478 --smtp-pass[=&lt;password&gt;]
479 </dt>
480 <dd>
482 Password for SMTP-AUTH. The argument is optional: If no
483 argument is specified, then the empty string is used as
484 the password. Default is the value of <em>sendemail.smtppass</em>,
485 however <em>--smtp-pass</em> always overrides this value.
486 </p>
487 <div class="para"><p>Furthermore, passwords need not be specified in configuration files
488 or on the command line. If a username has been specified (with
489 <em>--smtp-user</em> or a <em>sendemail.smtpuser</em>), but no password has been
490 specified (with <em>--smtp-pass</em> or <em>sendemail.smtppass</em>), then the
491 user is prompted for a password while the input is masked for privacy.</p></div>
492 </dd>
493 <dt>
494 --smtp-server=&lt;host&gt;
495 </dt>
496 <dd>
498 If set, specifies the outgoing SMTP server to use (e.g.
499 <tt>smtp.example.com</tt> or a raw IP address). Alternatively it can
500 specify a full pathname of a sendmail-like program instead;
501 the program must support the <tt>-i</tt> option. Default value can
502 be specified by the <em>sendemail.smtpserver</em> configuration
503 option; the built-in default is <tt>/usr/sbin/sendmail</tt> or
504 <tt>/usr/lib/sendmail</tt> if such program is available, or
505 <tt>localhost</tt> otherwise.
506 </p>
507 </dd>
508 <dt>
509 --smtp-server-port=&lt;port&gt;
510 </dt>
511 <dd>
513 Specifies a port different from the default port (SMTP
514 servers typically listen to smtp port 25, but may also listen to
515 submission port 587, or the common SSL smtp port 465);
516 symbolic port names (e.g. "submission" instead of 587)
517 are also accepted. The port can also be set with the
518 <em>sendemail.smtpserverport</em> configuration variable.
519 </p>
520 </dd>
521 <dt>
522 --smtp-ssl
523 </dt>
524 <dd>
526 Legacy alias for <em>--smtp-encryption ssl</em>.
527 </p>
528 </dd>
529 <dt>
530 --smtp-user=&lt;user&gt;
531 </dt>
532 <dd>
534 Username for SMTP-AUTH. Default is the value of <em>sendemail.smtpuser</em>;
535 if a username is not specified (with <em>--smtp-user</em> or <em>sendemail.smtpuser</em>),
536 then authentication is not attempted.
537 </p>
538 </dd>
539 </dl></div>
540 <h3 id="_automating">Automating</h3><div style="clear:left"></div>
541 <div class="vlist"><dl>
542 <dt>
543 --cc-cmd=&lt;command&gt;
544 </dt>
545 <dd>
547 Specify a command to execute once per patch file which
548 should generate patch file specific "Cc:" entries.
549 Output of this command must be single email address per line.
550 Default is the value of <em>sendemail.cccmd</em> configuration value.
551 </p>
552 </dd>
553 <dt>
554 --[no-]chain-reply-to
555 </dt>
556 <dd>
558 If this is set, each email will be sent as a reply to the previous
559 email sent. If disabled with "--no-chain-reply-to", all emails after
560 the first will be sent as replies to the first email sent. When using
561 this, it is recommended that the first file given be an overview of the
562 entire patch series. Disabled by default, but the <em>sendemail.chainreplyto</em>
563 configuration variable can be used to enable it.
564 </p>
565 </dd>
566 <dt>
567 --identity=&lt;identity&gt;
568 </dt>
569 <dd>
571 A configuration identity. When given, causes values in the
572 <em>sendemail.&lt;identity&gt;</em> subsection to take precedence over
573 values in the <em>sendemail</em> section. The default identity is
574 the value of <em>sendemail.identity</em>.
575 </p>
576 </dd>
577 <dt>
578 --[no-]signed-off-by-cc
579 </dt>
580 <dd>
582 If this is set, add emails found in Signed-off-by: or Cc: lines to the
583 cc list. Default is the value of <em>sendemail.signedoffbycc</em> configuration
584 value; if that is unspecified, default to --signed-off-by-cc.
585 </p>
586 </dd>
587 <dt>
588 --suppress-cc=&lt;category&gt;
589 </dt>
590 <dd>
592 Specify an additional category of recipients to suppress the
593 auto-cc of:
594 </p>
595 <div class="ilist"><ul>
596 <li>
598 <em>author</em> will avoid including the patch author
599 </p>
600 </li>
601 <li>
603 <em>self</em> will avoid including the sender
604 </p>
605 </li>
606 <li>
608 <em>cc</em> will avoid including anyone mentioned in Cc lines in the patch header
609 except for self (use <em>self</em> for that).
610 </p>
611 </li>
612 <li>
614 <em>bodycc</em> will avoid including anyone mentioned in Cc lines in the
615 patch body (commit message) except for self (use <em>self</em> for that).
616 </p>
617 </li>
618 <li>
620 <em>sob</em> will avoid including anyone mentioned in Signed-off-by lines except
621 for self (use <em>self</em> for that).
622 </p>
623 </li>
624 <li>
626 <em>cccmd</em> will avoid running the --cc-cmd.
627 </p>
628 </li>
629 <li>
631 <em>body</em> is equivalent to <em>sob</em> + <em>bodycc</em>
632 </p>
633 </li>
634 <li>
636 <em>all</em> will suppress all auto cc values.
637 </p>
638 </li>
639 </ul></div>
640 <div class="para"><p>Default is the value of <em>sendemail.suppresscc</em> configuration value; if
641 that is unspecified, default to <em>self</em> if --suppress-from is
642 specified, as well as <em>body</em> if --no-signed-off-cc is specified.</p></div>
643 </dd>
644 <dt>
645 --[no-]suppress-from
646 </dt>
647 <dd>
649 If this is set, do not add the From: address to the cc: list.
650 Default is the value of <em>sendemail.suppressfrom</em> configuration
651 value; if that is unspecified, default to --no-suppress-from.
652 </p>
653 </dd>
654 <dt>
655 --[no-]thread
656 </dt>
657 <dd>
659 If this is set, the In-Reply-To and References headers will be
660 added to each email sent. Whether each mail refers to the
661 previous email (<tt>deep</tt> threading per <em>git format-patch</em>
662 wording) or to the first email (<tt>shallow</tt> threading) is
663 governed by "--[no-]chain-reply-to".
664 </p>
665 <div class="para"><p>If disabled with "--no-thread", those headers will not be added
666 (unless specified with --in-reply-to). Default is the value of the
667 <em>sendemail.thread</em> configuration value; if that is unspecified,
668 default to --thread.</p></div>
669 <div class="para"><p>It is up to the user to ensure that no In-Reply-To header already
670 exists when <em>git send-email</em> is asked to add it (especially note that
671 <em>git format-patch</em> can be configured to do the threading itself).
672 Failure to do so may not produce the expected result in the
673 recipient's MUA.</p></div>
674 </dd>
675 </dl></div>
676 <h3 id="_administering">Administering</h3><div style="clear:left"></div>
677 <div class="vlist"><dl>
678 <dt>
679 --confirm=&lt;mode&gt;
680 </dt>
681 <dd>
683 Confirm just before sending:
684 </p>
685 <div class="ilist"><ul>
686 <li>
688 <em>always</em> will always confirm before sending
689 </p>
690 </li>
691 <li>
693 <em>never</em> will never confirm before sending
694 </p>
695 </li>
696 <li>
698 <em>cc</em> will confirm before sending when send-email has automatically
699 added addresses from the patch to the Cc list
700 </p>
701 </li>
702 <li>
704 <em>compose</em> will confirm before sending the first message when using --compose.
705 </p>
706 </li>
707 <li>
709 <em>auto</em> is equivalent to <em>cc</em> + <em>compose</em>
710 </p>
711 </li>
712 </ul></div>
713 <div class="para"><p>Default is the value of <em>sendemail.confirm</em> configuration value; if that
714 is unspecified, default to <em>auto</em> unless any of the suppress options
715 have been specified, in which case default to <em>compose</em>.</p></div>
716 </dd>
717 <dt>
718 --dry-run
719 </dt>
720 <dd>
722 Do everything except actually send the emails.
723 </p>
724 </dd>
725 <dt>
726 --[no-]format-patch
727 </dt>
728 <dd>
730 When an argument may be understood either as a reference or as a file name,
731 choose to understand it as a format-patch argument (<em>--format-patch</em>)
732 or as a file name (<em>--no-format-patch</em>). By default, when such a conflict
733 occurs, git send-email will fail.
734 </p>
735 </dd>
736 <dt>
737 --quiet
738 </dt>
739 <dd>
741 Make git-send-email less verbose. One line per email should be
742 all that is output.
743 </p>
744 </dd>
745 <dt>
746 --[no-]validate
747 </dt>
748 <dd>
750 Perform sanity checks on patches.
751 Currently, validation means the following:
752 </p>
753 <div class="ilist"><ul>
754 <li>
756 Warn of patches that contain lines longer than 998 characters; this
757 is due to SMTP limits as described by http://www.ietf.org/rfc/rfc2821.txt.
758 </p>
759 </li>
760 </ul></div>
761 <div class="para"><p>Default is the value of <em>sendemail.validate</em>; if this is not set,
762 default to <em>--validate</em>.</p></div>
763 </dd>
764 </dl></div>
765 </div>
766 <h2 id="_configuration">CONFIGURATION</h2>
767 <div class="sectionbody">
768 <div class="vlist"><dl>
769 <dt>
770 sendemail.aliasesfile
771 </dt>
772 <dd>
774 To avoid typing long email addresses, point this to one or more
775 email aliases files. You must also supply <em>sendemail.aliasfiletype</em>.
776 </p>
777 </dd>
778 <dt>
779 sendemail.aliasfiletype
780 </dt>
781 <dd>
783 Format of the file(s) specified in sendemail.aliasesfile. Must be
784 one of <em>mutt</em>, <em>mailrc</em>, <em>pine</em>, <em>elm</em>, or <em>gnus</em>.
785 </p>
786 </dd>
787 <dt>
788 sendemail.multiedit
789 </dt>
790 <dd>
792 If true (default), a single editor instance will be spawned to edit
793 files you have to edit (patches when <em>--annotate</em> is used, and the
794 summary when <em>--compose</em> is used). If false, files will be edited one
795 after the other, spawning a new editor each time.
796 </p>
797 </dd>
798 <dt>
799 sendemail.confirm
800 </dt>
801 <dd>
803 Sets the default for whether to confirm before sending. Must be
804 one of <em>always</em>, <em>never</em>, <em>cc</em>, <em>compose</em>, or <em>auto</em>. See <em>--confirm</em>
805 in the previous section for the meaning of these values.
806 </p>
807 </dd>
808 </dl></div>
809 </div>
810 <h2 id="_author">Author</h2>
811 <div class="sectionbody">
812 <div class="para"><p>Written by Ryan Anderson &lt;ryan@michonline.com&gt;</p></div>
813 <div class="para"><p>git-send-email is originally based upon
814 send_lots_of_email.pl by Greg Kroah-Hartman.</p></div>
815 </div>
816 <h2 id="_documentation">Documentation</h2>
817 <div class="sectionbody">
818 <div class="para"><p>Documentation by Ryan Anderson</p></div>
819 </div>
820 <h2 id="_git">GIT</h2>
821 <div class="sectionbody">
822 <div class="para"><p>Part of the <a href="git.html">git(1)</a> suite</p></div>
823 </div>
824 <div id="footer">
825 <div id="footer-text">
826 Last updated 2009-12-26 23:13:52 UTC
827 </div>
828 </div>
829 </body>
830 </html>