SCRIPTS: make git-show-backports also dump a "git show" command

This is very convenient for backport reviews as in a single
command you get all the patches one at a time with their
changelog and backport instructions.
This commit is contained in:
Willy Tarreau 2016-10-25 22:12:54 +02:00
parent 4f88c63609
commit ef393a62d8
1 changed files with 4 additions and 2 deletions

View File

@ -227,10 +227,12 @@ dump_commit_matrix | column -t | \
echo "No missing commit to apply."
elif [ -n "$MISSING" ]; then
echo
echo "In order to apply all leftmost commits to current branch :"
echo "In order to show and/or apply all leftmost commits to current branch :"
echo " git show ${left_commits[@]}"
echo " git cherry-pick -x ${left_commits[@]}"
echo
echo "In order to apply all rightmost commits to current branch :"
echo "In order to show and/or apply all rightmost commits to current branch :"
echo " git show ${right_commits[@]}"
echo " git cherry-pick -x ${right_commits[@]}"
fi
)