Code

git-rebase--interactive.sh: Don't pass a strategy to git-cherry-pick.
authorBjörn Steinbrink <B.Steinbrink@gmx.de>
Wed, 31 Oct 2007 02:20:31 +0000 (03:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Oct 2007 04:28:44 +0000 (21:28 -0700)
git-cherry-pick doesn't support a strategy paramter, so don't pass one.
This means that --strategy for interactive rebases is a no-op for
anything but merge commits, but that's still better than being broken. A
correct fix would probably need to port the --merge behaviour from plain
git-rebase.sh, but I have no clue how to integrate that cleanly.

Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh

index ebc67e515de15f817a9c7f036e0c5069dd8f32ec..db04057653fb896036454001499a1bdeb06907a6 100755 (executable)
@@ -109,7 +109,7 @@ pick_one () {
                sha1=$(git rev-parse --short $sha1)
                output warn Fast forward to $sha1
        else
-               output git cherry-pick $STRATEGY "$@"
+               output git cherry-pick "$@"
        fi
 }
 
@@ -173,7 +173,7 @@ pick_one_preserving_merges () {
                        fi
                        ;;
                *)
-                       output git cherry-pick $STRATEGY "$@" ||
+                       output git cherry-pick "$@" ||
                                die_with_patch $sha1 "Could not pick $sha1"
                esac
        esac