From c35a7b8d806317dc1762e36561cbd31c2530dd9c Mon Sep 17 00:00:00 2001
From: Junio C Hamano <junkio@cox.net>
Date: Wed, 10 Aug 2005 00:06:16 -0700
Subject: [PATCH] Skip merges in format-patch.

---
 git-format-patch-script | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/git-format-patch-script b/git-format-patch-script
index 003194cdd1..c0081697da 100755
--- a/git-format-patch-script
+++ b/git-format-patch-script
@@ -117,7 +117,8 @@ _x40='[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
 _x40="$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40"
 stripCommitHead='/^'"$_x40"' (from '"$_x40"')$/d'
 
-git-rev-list --merge-order $(git-rev-parse --revs-only "$revpair") >$series
+git-rev-list --no-merges --merge-order \
+	$(git-rev-parse --revs-only "$revpair") >$series
 total=`wc -l <$series | tr -dc "[0-9]"`
 i=$total
 while read commit
-- 
2.40.0