]> git.ozlabs.org Git - next-scripts/commitdiff
check_commits: output a more useful commit line
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 18 Jul 2018 13:29:21 +0000 (23:29 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 18 Jul 2018 13:29:21 +0000 (23:29 +1000)
check_commits

index 37457e777343deb730620abda3bcf1d56171fac3..bfce10243f1e57de57ef558e0d137c61bc1e5628 100755 (executable)
@@ -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"