CHERRYPICKING=
fi
-echo Diff against $REMOTE/$TARGET
+echo
+echo Log since $REMOTE/$TARGET:
+git log $REMOTE/$TARGET..
+
+echo
+echo Diff against $REMOTE/$TARGET:
git diff $REMOTE/$TARGET
if [ "$INTERACTIVE" == "yes" ] ; then
+ echo
echo -n "Press Enter to interactively rebase $AUTOSQUASH on $REMOTE/$TARGET: "; read foo
REBASING=1
git rebase -i $AUTOSQUASH $REMOTE/$TARGET || exit 1
while [ -e .git/rebase-merge ] ; do sleep 1 ; done
fi
REBASING=
+ echo
echo "Calling addrev $ADDREVOPTS --prnum=$PRNUM $TEAM $REMOTE/$TARGET.."
addrev $ADDREVOPTS --prnum=$PRNUM $TEAM $REMOTE/$TARGET..
fi
-echo
-echo Log since $REMOTE/$TARGET
-git log $REMOTE/$TARGET..
-
git checkout $TARGET
if [ "$INTERACTIVE" != "yes" ] ; then
+ echo
echo -n "Press Enter to non-interactively merge --squash $BRANCH to $REMOTE/$TARGET: "; read foo
ORIG_TARGET_HEAD=`git show -s --format="%H"`
git merge --ff-only --no-commit --squash $WORK
git merge --ff-only $WORK
fi
-echo New log since $REMOTE/$TARGET
+echo
+echo New log including addrev output since $REMOTE/$TARGET:
git log $REMOTE/$TARGET..
if [ "$BUILD" == "yes" ] ; then
CC="$CC" opensslbuild >/dev/null # any STDERR output will be shown
fi
+echo
while true ; do
echo -n "Enter 'y'/'yes' to push to $REMOTE/$TARGET or 'n'/'no' to abort: "
read x
echo "First commit to cherry-pick is: $id~$((num - 1))"
echo "Target branch is: $target"
echo "Number of commits to pick: $num"
-echo "Commit(s) to be cherry-picked:"
echo
+echo "Commit(s) to be cherry-picked:"
git log $id~$num..$id
echo
git cherry-pick -e -x $id~$num..$id || (echo 'Fix or Ctrl-d to abort' ; read || exit 1)
CHERRYPICKING=
+echo
while true ; do
echo -n "Enter 'y'/'yes' to push or 'n'/'no' to abort: "
read x