1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE sect2 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <sect2 lang="en" id="git-mailinfo(1)">
\r
5 <title>git-mailinfo(1)</title>
\r
7 <primary>git-mailinfo(1)</primary>
\r
9 <simplesect id="git-mailinfo(1)__name">
\r
11 <simpara>git-mailinfo - Extracts patch and authorship from a single e-mail message</simpara>
\r
13 <simplesect id="git-mailinfo(1)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
16 <literallayout><emphasis>git mailinfo</emphasis> [-k|-b] [-u | --encoding=<encoding> | -n] [--scissors] <msg> <patch></literallayout>
\r
19 <simplesect id="git-mailinfo(1)__description">
\r
20 <title>DESCRIPTION</title>
\r
21 <simpara>Reads a single e-mail message from the standard input, and
\r
22 writes the commit log message in <msg> file, and the patches in
\r
23 <patch> file. The author name, e-mail and e-mail subject are
\r
24 written out to the standard output to be used by <emphasis>git am</emphasis>
\r
25 to create a commit. It is usually not necessary to use this
\r
26 command directly. See <xref linkend="git-am(1)" /> instead.</simpara>
\r
28 <simplesect id="git-mailinfo(1)__options">
\r
29 <title>OPTIONS</title>
\r
37 Usually the program removes email cruft from the Subject:
\r
38 header line to extract the title line for the commit log
\r
39 message. This option prevents this munging, and is most
\r
40 useful when used to read back <emphasis>git format-patch -k</emphasis> output.
\r
42 <simpara>Specifically, the following are removed until none of them remain:</simpara>
\r
46 Leading and trailing whitespace.
\r
51 Leading <emphasis>Re:</emphasis>, <emphasis>re:</emphasis>, and <emphasis>:</emphasis>.
\r
56 Leading bracketed strings (between <emphasis>[</emphasis> and <emphasis>]</emphasis>, usually
\r
57 <emphasis>[PATCH]</emphasis>).
\r
61 <simpara>Finally, runs of whitespace are normalized to a single ASCII space
\r
62 character.</simpara>
\r
71 When -k is not in effect, all leading strings bracketed with <emphasis>[</emphasis>
\r
72 and <emphasis>]</emphasis> pairs are stripped. This option limits the stripping to
\r
73 only the pairs whose bracketed string contains the word "PATCH".
\r
83 The commit log message, author name and author email are
\r
84 taken from the e-mail, and after minimally decoding MIME
\r
85 transfer encoding, re-coded in the charset specified by
\r
86 i18n.commitencoding (defaulting to UTF-8) by transliterating
\r
87 them. This used to be optional but now it is the default.
\r
89 <simpara>Note that the patch is always used as-is without charset
\r
90 conversion, even with this flag.</simpara>
\r
95 --encoding=<encoding>
\r
99 Similar to -u. But when re-coding, the charset specified here is
\r
100 used instead of the one specified by i18n.commitencoding or UTF-8.
\r
110 Disable all charset re-coding of the metadata.
\r
120 Remove everything in body before a scissors line. A line that
\r
121 mainly consists of scissors (either ">8" or "8<") and perforation
\r
122 (dash "-") marks is called a scissors line, and is used to request
\r
123 the reader to cut the message at that line. If such a line
\r
124 appears in the body of the message before the patch, everything
\r
125 before it (including the scissors line itself) is ignored when
\r
126 this option is used.
\r
128 <simpara>This is useful if you want to begin your message in a discussion thread
\r
129 with comments and suggestions on the message you are responding to, and to
\r
130 conclude it with a patch submission, separating the discussion and the
\r
131 beginning of the proposed commit log message with a scissors line.</simpara>
\r
132 <simpara>This can enabled by default with the configuration option mailinfo.scissors.</simpara>
\r
141 Ignore scissors lines. Useful for overriding mailinfo.scissors settings.
\r
151 The commit log message extracted from e-mail, usually
\r
152 except the title line which comes from e-mail Subject.
\r
162 The patch extracted from e-mail.
\r
168 <simplesect id="git-mailinfo(1)__git">
\r
170 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r