From: Stephen Rothwell Date: Wed, 18 Jul 2018 13:29:21 +0000 (+1000) Subject: check_commits: output a more useful commit line X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=eb8b08702079dfcfaea7f47e2a75f51ec0ee6e7c;p=next-scripts check_commits: output a more useful commit line --- diff --git a/check_commits b/check_commits index 37457e7..bfce102 100755 --- a/check_commits +++ b/check_commits @@ -36,7 +36,7 @@ for c in $commits; do cm=true if "$am" || "$cm"; then - printf "Commit %s\n" "$c" + git log -1 --pretty='format: %h ("%s")' "$c" "$am" && printf "\tauthor SOB missing\n" "$cm" && printf "\tcommitter SOB missing\n" printf "%s %s\n%s\n" "$ae" "$ce" "$sob"