line is automatically stripped.
The patch is expected to be inline, directly following the
-message. Any line that is of the form:
-
-* three-dashes and end-of-line, or
-* a line that begins with "diff -", or
-* a line that begins with "Index: "
+message.
+include::format-patch-end-of-commit-message.adoc[]
-is taken as the beginning of a patch, and the commit log message
-is terminated before the first occurrence of such a line.
+This means that the contents of the commit message can inadvertently
+interrupt the processing (see the <<caveats,CAVEATS>> section below).
- When initially invoking `git am`, you give it the names of the mailboxes
+ When initially invoking linkgit:git-am[1], you give it the names of the mailboxes
to process. Upon seeing the first patch that does not apply, it
aborts in the middle. You can recover from this in one of two ways:
Before any patches are applied, ORIG_HEAD is set to the tip of the
current branch. This is useful if you have problems with multiple
- commits, like running 'git am' on the wrong branch or an error in the
- commits that is more easily fixed by changing the mailbox (e.g.
+ commits, like running linkgit:git-am[1] on the wrong branch or an error
+ in the commits that is more easily fixed by changing the mailbox (e.g.
errors in the "From:" lines).
+[[caveats]]
+CAVEATS
+-------
+
+:git-am: 1
+include::format-patch-caveats.adoc[]
+
HOOKS
-----
This command can run `applypatch-msg`, `pre-applypatch`,