From: Willy Tarreau Date: Tue, 25 Oct 2016 20:12:54 +0000 (+0200) Subject: SCRIPTS: make git-show-backports also dump a "git show" command X-Git-Tag: v1.7-dev5~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef393a62d8a74314d1b35a1e600769960f9a658d;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/scripts/git-show-backports b/scripts/git-show-backports index cbe40bbc29..6567b2f024 100755 --- a/scripts/git-show-backports +++ b/scripts/git-show-backports @@ -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 )