@@ -233,6 +233,7 @@ applying.
233233 create an empty commit with the contents of the e-mail message
234234 as its log message.
235235
236+ [[discussion]]
236237DISCUSSION
237238----------
238239
@@ -252,14 +253,11 @@ where the patch begins. Excess whitespace at the end of each
252253line is automatically stripped.
253254
254255The patch is expected to be inline, directly following the
255- message. Any line that is of the form:
256+ message.
257+ include::format-patch-end-of-commit-message.adoc[]
256258
257- * three-dashes and end-of-line, or
258- * a line that begins with "diff -", or
259- * a line that begins with "Index: "
260-
261- is taken as the beginning of a patch, and the commit log message
262- is terminated before the first occurrence of such a line.
259+ This means that the contents of the commit message can inadvertently
260+ interrupt the processing (see the <<caveats,CAVEATS>> section below).
263261
264262When initially invoking `git am` , you give it the names of the mailboxes
265263to process. Upon seeing the first patch that does not apply, it
@@ -283,6 +281,13 @@ commits, like running 'git am' on the wrong branch or an error in the
283281commits that is more easily fixed by changing the mailbox (e.g.
284282errors in the "From:" lines).
285283
284+ [[caveats]]
285+ CAVEATS
286+ -------
287+
288+ :git-am: 1
289+ include::format-patch-caveats.adoc[]
290+
286291HOOKS
287292-----
288293This command can run `applypatch-msg` , `pre-applypatch` ,
0 commit comments