2005-08-23 10:49:47 +02:00
|
|
|
git-applymbox(1)
|
|
|
|
================
|
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2005-08-30 02:21:06 +02:00
|
|
|
git-applymbox - Apply a series of patches in a mailbox
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2005-10-06 23:25:52 +02:00
|
|
|
'git-applymbox' [-u] [-k] [-q] [-m] ( -c .dotest/<num> | <mbox> ) [ <signoff> ]
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2005-08-30 02:21:06 +02:00
|
|
|
Splits mail messages in a mailbox into commit log message,
|
|
|
|
authorship information and patches, and applies them to the
|
|
|
|
current branch.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2005-08-30 02:21:06 +02:00
|
|
|
-q::
|
|
|
|
Apply patches interactively. The user will be given
|
|
|
|
opportunity to edit the log message and the patch before
|
2005-10-06 00:08:26 +02:00
|
|
|
attempting to apply it.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
2005-08-30 02:21:06 +02:00
|
|
|
-k::
|
|
|
|
Usually the program 'cleans up' the Subject: header line
|
|
|
|
to extract the title line for the commit log message,
|
|
|
|
among which (1) remove 'Re:' or 're:', (2) leading
|
|
|
|
whitespaces, (3) '[' up to ']', typically '[PATCH]', and
|
|
|
|
then prepends "[PATCH] ". This flag forbids this
|
|
|
|
munging, and is most useful when used to read back 'git
|
2007-05-14 16:44:52 +02:00
|
|
|
format-patch -k' output.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
2005-10-06 23:25:52 +02:00
|
|
|
-m::
|
|
|
|
Patches are applied with `git-apply` command, and unless
|
|
|
|
it cleanly applies without fuzz, the processing fails.
|
|
|
|
With this flag, if a tree that the patch applies cleanly
|
|
|
|
is found in a repository, the patch is applied to the
|
|
|
|
tree and then a 3-way merge between the resulting tree
|
|
|
|
and the current tree.
|
|
|
|
|
2005-08-30 02:21:06 +02:00
|
|
|
-u::
|
2007-04-16 08:40:06 +02:00
|
|
|
Pass `-u` flag to `git-mailinfo` (see gitlink:git-mailinfo[1]).
|
|
|
|
The proposed commit log message taken from the e-mail
|
|
|
|
are re-coded into UTF-8 encoding (configuration variable
|
|
|
|
`i18n.commitencoding` can be used to specify project's
|
|
|
|
preferred encoding if it is not UTF-8). This used to be
|
|
|
|
optional but now it is the default.
|
2007-01-10 06:20:01 +01:00
|
|
|
+
|
|
|
|
Note that the patch is always used as-is without charset
|
|
|
|
conversion, even with this flag.
|
2005-08-30 02:21:06 +02:00
|
|
|
|
2007-04-16 08:40:06 +02:00
|
|
|
-n::
|
|
|
|
Pass `-n` flag to `git-mailinfo` (see
|
|
|
|
gitlink:git-mailinfo[1]).
|
|
|
|
|
2005-08-30 02:21:06 +02:00
|
|
|
-c .dotest/<num>::
|
|
|
|
When the patch contained in an e-mail does not cleanly
|
|
|
|
apply, the command exits with an error message. The
|
|
|
|
patch and extracted message are found in .dotest/, and
|
|
|
|
you could re-run 'git applymbox' with '-c .dotest/<num>'
|
|
|
|
flag to restart the process after inspecting and fixing
|
|
|
|
them.
|
|
|
|
|
|
|
|
<mbox>::
|
|
|
|
The name of the file that contains the e-mail messages
|
|
|
|
with patches. This file should be in the UNIX mailbox
|
|
|
|
format. See 'SubmittingPatches' document to learn about
|
|
|
|
the formatting convention for e-mail submission.
|
|
|
|
|
|
|
|
<signoff>::
|
|
|
|
The name of the file that contains your "Signed-off-by"
|
|
|
|
line. See 'SubmittingPatches' document to learn what
|
|
|
|
"Signed-off-by" line means. You can also just say
|
|
|
|
'yes', 'true', 'me', or 'please' to use an automatically
|
|
|
|
generated "Signed-off-by" line based on your committer
|
|
|
|
identity.
|
2005-08-23 10:49:47 +02:00
|
|
|
|
2005-09-03 06:19:26 +02:00
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
2005-10-21 02:28:42 +02:00
|
|
|
gitlink:git-am[1], gitlink:git-applypatch[1].
|
2005-09-03 06:19:26 +02:00
|
|
|
|
|
|
|
|
2005-08-23 10:49:47 +02:00
|
|
|
Author
|
|
|
|
------
|
|
|
|
Written by Linus Torvalds <torvalds@osdl.org>
|
|
|
|
|
|
|
|
Documentation
|
|
|
|
--------------
|
|
|
|
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
|
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2005-09-19 12:10:51 +02:00
|
|
|
Part of the gitlink:git[7] suite
|
2005-08-23 10:49:47 +02:00
|
|
|
|