SCRIPTS: git-show-backports: emit the shell command to backport a commit
authorWilly Tarreau <w@1wt.eu>
Fri, 31 Jul 2020 14:47:44 +0000 (16:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Aug 2020 09:34:18 +0000 (11:34 +0200)
commitc02a4d9e79050fbbd8fc06ee169d2fcb56ef0c15
treefc6d3336be158ddc9478b4cfd027a66d54c44d8c
parent7bc57c2e31b63a42cebd6ba28fed4544f1df2fd2
SCRIPTS: git-show-backports: emit the shell command to backport a commit

It's cumbersome to copy-paste a commit ID into another window after having
typed "git cherry-pick -sx", so let's have the suggested output format of
git-show prepare this line just before the subject line, it remains at a
stable position on the terminal when searching for "/^commit". One just
has to copy-paste the line into another terminal will result in the commit
being properly picked.

(cherry picked from commit 1f927d1bc228c78c322c94c8c2d5247297c6f6c4)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 2d6847aa7e2f7704c44c57982ef383c00f77a7c6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
scripts/git-show-backports