GIT-MAILINFO(1) | Git Manual | GIT-MAILINFO(1) |
git-mailinfo - Extracts patch and authorship from a single e-mail message
git mailinfo [-k|-b] [-u | --encoding=<encoding> | -n]
[--[no-]scissors] [--quoted-cr=<action>]
<msg> <patch>
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 git am to create a commit. It is usually not necessary to use this command directly. See git-am(1) instead.
-k
Specifically, the following are removed until none of them remain:
Finally, runs of whitespace are normalized to a single ASCII space character.
-b
-u
Note that the patch is always used as-is without charset conversion, even with this flag.
--encoding=<encoding>
-n
-m, --message-id
--scissors
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.
This can be enabled by default with the configuration option mailinfo.scissors.
--no-scissors
--quoted-cr=<action>
The valid actions are:
The default action could be set by configuration option mailinfo.quotedCR. If no such configuration option has been set, warn will be used.
<msg>
<patch>
Everything below this line in this section is selectively included from the git-config(1) documentation. The content is the same as what’s found there:
mailinfo.scissors
Part of the git(1) suite
12/12/2022 | Git 2.39.0 |