1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
\r
4 <article lang="en" id="git-mailinfo(1)">
\r
6 <title>git-mailinfo(1)</title>
\r
8 <primary>git-mailinfo(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-mailinfo - Extracts patch and authorship from a single e-mail message</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
17 <simpara><emphasis>git mailinfo</emphasis> [-k] [-u | --encoding=<encoding> | -n] <msg> <patch></simpara>
\r
19 <simplesect id="_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="_options">
\r
29 <title>OPTIONS</title>
\r
37 Usually the program <emphasis>cleans up</emphasis> the Subject: header line
\r
38 to extract the title line for the commit log message,
\r
39 among which (1) remove <emphasis>Re:</emphasis> or <emphasis>re:</emphasis>, (2) leading
\r
40 whitespaces, (3) <emphasis>[</emphasis> up to <emphasis>]</emphasis>, typically <emphasis>[PATCH]</emphasis>, and
\r
41 then prepends "[PATCH] ". This flag forbids this
\r
42 munging, and is most useful when used to read back
\r
43 <emphasis>git-format-patch -k</emphasis> output.
\r
53 The commit log message, author name and author email are
\r
54 taken from the e-mail, and after minimally decoding MIME
\r
55 transfer encoding, re-coded in UTF-8 by transliterating
\r
56 them. This used to be optional but now it is the default.
\r
58 <simpara>Note that the patch is always used as-is without charset
\r
59 conversion, even with this flag.</simpara>
\r
64 --encoding=<encoding>
\r
68 Similar to -u but if the local convention is different
\r
69 from what is specified by i18n.commitencoding, this flag
\r
70 can be used to override it.
\r
80 Disable all charset re-coding of the metadata.
\r
90 The commit log message extracted from e-mail, usually
\r
91 except the title line which comes from e-mail Subject.
\r
101 The patch extracted from e-mail.
\r
107 <simplesect id="_author">
\r
108 <title>Author</title>
\r
109 <simpara>Written by Linus Torvalds <<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>> and
\r
110 Junio C Hamano <<ulink url="mailto:gitster@pobox.com">gitster@pobox.com</ulink>></simpara>
\r
112 <simplesect id="_documentation">
\r
113 <title>Documentation</title>
\r
114 <simpara>Documentation by Junio C Hamano and the git-list <<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>>.</simpara>
\r
116 <simplesect id="_git">
\r
118 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
\r