grep with unmerged index
[gitweb.git] / git-rebase--interactive.sh
index db04057653fb896036454001499a1bdeb06907a6..f28c3df204214f691de87cb48c513f1eb5d767e6 100755 (executable)
@@ -165,6 +165,8 @@ pick_one_preserving_merges () {
                        eval "$author_script"
                        msg="$(git cat-file commit $sha1 | \
                                sed -e '1,/^$/d' -e "s/[\"\\]/\\\\&/g")"
+                       # No point in merging the first parent, that's HEAD
+                       new_parents=${new_parents# $first_parent}
                        # NEEDSWORK: give rerere a chance
                        if ! output git merge $STRATEGY -m "$msg" $new_parents
                        then