if [ -n "$MISSING" -a ${#left_commits[@]} -eq 0 ]; then
echo "No missing commit to apply."
elif [ -n "$MISSING" ]; then
+ echo
echo
echo "In order to show and/or apply all leftmost commits to current branch :"
echo " git show ${left_commits[@]}"
+ echo
echo " git cherry-pick -sx ${left_commits[@]}"
echo
- echo "In order to show and/or apply all rightmost commits to current branch :"
- echo " git show ${right_commits[@]}"
- echo " git cherry-pick -sx ${right_commits[@]}"
+ if [ "${left_commits[*]}" != "${right_commits[*]}" ]; then
+ echo "In order to show and/or apply all rightmost commits to current branch :"
+ echo " git show ${right_commits[@]}"
+ echo
+ echo " git cherry-pick -sx ${right_commits[@]}"
+ echo
+ fi
fi
)