summaryrefslogtreecommitdiffstats
path: root/bin/get-fixes-pick-list.sh
diff options
context:
space:
mode:
authorJuan A. Suarez Romero <[email protected]>2017-04-05 20:18:42 +0200
committerJuan A. Suarez Romero <[email protected]>2017-04-20 10:28:54 +0200
commit3af7f8275b806d42daaad6f700c3917f8e33d3e4 (patch)
tree03186dafc993ab9f02729e904ec748e9f56766c2 /bin/get-fixes-pick-list.sh
parent99b41631bb98d154df3dd01f17edd5e5a6a7d1f1 (diff)
bin/get-{extra,fixes}-pick-list.sh: improve output
Show the commit hash and the title in a way that it is easier to copy and paste in the bin/.cherry-ignore-extra file if we want to ignore those commits for the future. v2: - Use printf instead echo (Eric Engestrom) Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'bin/get-fixes-pick-list.sh')
-rwxr-xr-xbin/get-fixes-pick-list.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/get-fixes-pick-list.sh b/bin/get-fixes-pick-list.sh
index 73afd0c22a1..f1398f320c8 100755
--- a/bin/get-fixes-pick-list.sh
+++ b/bin/get-fixes-pick-list.sh
@@ -34,7 +34,8 @@ do
# For each one try to extract the tag
fixes_count=`git show $sha | grep -i "fixes:" | wc -l`
if [ "x$fixes_count" != x1 ] ; then
- echo WARNING: Commit $sha has more than one Fixes tag
+ printf "WARNING: Commit \"%s\" has more than one Fixes tag\n" \
+ "`git log -n1 --pretty=oneline $sha`"
fi
fixes=`git show $sha | grep -i "fixes:" | head -n 1`
# The following sed/cut combination is borrowed from GregKH
@@ -59,7 +60,9 @@ do
continue
fi
- echo Commit $sha fixes $id
+ printf "Commit \"%s\" fixes %s\n" \
+ "`git log -n1 --pretty=oneline $sha`" \
+ "$id"
fi
done