190 lines
4.7 KiB
HTML
190 lines
4.7 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of GIT-MAILINFO</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>GIT-MAILINFO</H1>
|
|
Section: Git Manual (1)<BR>Updated: 03/04/2021<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
git-mailinfo - Extracts patch and authorship from a single e-mail message
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<PRE>
|
|
<I>git mailinfo</I> [-k|-b] [-u | --encoding=<encoding> | -n] [--[no-]scissors] <msg> <patch>
|
|
</PRE>
|
|
|
|
<P>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
Reads a single e-mail message from the standard input, and writes the commit log message in <msg> file, and the patches in <patch> file. The author name, e-mail and e-mail subject are written out to the standard output to be used by <I>git am</I> to create a commit. It is usually not necessary to use this command directly. See <B><A HREF="/cgi-bin/man/man2html?1+git-am">git-am</A></B>(1) instead.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
-k
|
|
<DL COMPACT><DT id="1"><DD>
|
|
Usually the program removes email cruft from the Subject: header line to extract the title line for the commit log message. This option prevents this munging, and is most useful when used to read back
|
|
<I>git format-patch -k</I>
|
|
output.
|
|
<P>
|
|
Specifically, the following are removed until none of them remain:
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
•
|
|
|
|
|
|
Leading and trailing whitespace.
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
•
|
|
|
|
|
|
Leading
|
|
<B>Re:</B>,
|
|
<B>re:</B>, and
|
|
<B>:</B>.
|
|
</DL>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
•
|
|
|
|
|
|
Leading bracketed strings (between
|
|
<B>[</B>
|
|
and
|
|
<B>]</B>, usually
|
|
<B>[PATCH]</B>).
|
|
</DL>
|
|
|
|
<P>
|
|
Finally, runs of whitespace are normalized to a single ASCII space character.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
-b
|
|
<DL COMPACT><DT id="5"><DD>
|
|
When -k is not in effect, all leading strings bracketed with
|
|
<I>[</I>
|
|
and
|
|
<I>]</I>
|
|
pairs are stripped. This option limits the stripping to only the pairs whose bracketed string contains the word "PATCH".
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
-u
|
|
<DL COMPACT><DT id="6"><DD>
|
|
The commit log message, author name and author email are taken from the e-mail, and after minimally decoding MIME transfer encoding, re-coded in the charset specified by i18n.commitencoding (defaulting to UTF-8) by transliterating them. This used to be optional but now it is the default.
|
|
<P>
|
|
Note that the patch is always used as-is without charset conversion, even with this flag.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
--encoding=<encoding>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Similar to -u. But when re-coding, the charset specified here is used instead of the one specified by i18n.commitencoding or UTF-8.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
-n
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Disable all charset re-coding of the metadata.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
-m, --message-id
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Copy the Message-ID header at the end of the commit message. This is useful in order to associate commits with mailing list discussions.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
--scissors
|
|
<DL COMPACT><DT id="10"><DD>
|
|
Remove everything in body before a scissors line. A line that mainly consists of scissors (either ">8" or "8<") and perforation (dash "-") marks is called a scissors line, and is used to request the reader to cut the message at that line. If such a line appears in the body of the message before the patch, everything before it (including the scissors line itself) is ignored when this option is used.
|
|
<P>
|
|
This is useful if you want to begin your message in a discussion thread with comments and suggestions on the message you are responding to, and to conclude it with a patch submission, separating the discussion and the beginning of the proposed commit log message with a scissors line.
|
|
<P>
|
|
This can be enabled by default with the configuration option mailinfo.scissors.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
--no-scissors
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Ignore scissors lines. Useful for overriding mailinfo.scissors settings.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<msg>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
The commit log message extracted from e-mail, usually except the title line which comes from e-mail Subject.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<patch>
|
|
<DL COMPACT><DT id="13"><DD>
|
|
The patch extracted from e-mail.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>GIT</H2>
|
|
|
|
<P>
|
|
Part of the <B><A HREF="/cgi-bin/man/man2html?1+git">git</A></B>(1) suite
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="17"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="18"><A HREF="#lbAF">GIT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:14 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|