]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-fast-import.txt: clarify that multiple merge commits are allowed
authorElijah Newren <newren@gmail.com>
Mon, 12 Aug 2019 17:17:47 +0000 (10:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Aug 2019 20:17:07 +0000 (13:17 -0700)
The grammar for commits used a '?' rather than a '*' on the `merge`
directive line, despite the fact that the code allows multiple `merge`
directives in order to support n-way merges.  In fact, elsewhere in
git-fast-import.txt there is an explicit declaration that "an unlimited
number of `merge` commands per commit are permitted by fast-import".
Fix the grammar to match the intent and implementation.

Reported-by: Joachim Klein <joachim.klein@automata.tools>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt

index d65cdb3d08fd745bd4996d0e45259077ea8eb000..28b447a3e644066beff4bb77831f97b48b49727f 100644 (file)
@@ -390,7 +390,7 @@ change to the project.
        'committer' (SP <name>)? SP LT <email> GT SP <when> LF
        data
        ('from' SP <commit-ish> LF)?
-       ('merge' SP <commit-ish> LF)?
+       ('merge' SP <commit-ish> LF)*
        (filemodify | filedelete | filecopy | filerename | filedeleteall | notemodify)*
        LF?
 ....