From: Thomas Monjalon Date: Tue, 5 Jul 2016 16:24:21 +0000 (+0200) Subject: scripts: check spacing after commit references X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4fe45378b8dbbcc6dba6fd7d1e8769e7efad9622;hp=48660cab922d5811dea9691ac13d96a8ec63b833;p=dpdk.git scripts: check spacing after commit references A blank line between "Fixes" and "Signed-off-by" helps to separate information in blocks. Signed-off-by: Thomas Monjalon --- diff --git a/scripts/check-git-log.sh b/scripts/check-git-log.sh index 7ea4458b1f..6f07bdaab9 100755 --- a/scripts/check-git-log.sh +++ b/scripts/check-git-log.sh @@ -129,6 +129,12 @@ bad=$(echo "$tags" | sed 's,^.,\t&,') [ -z "$bad" ] || printf "Wrong tag:\n$bad\n" +# check blank line after last Fixes: tag +bad=$(echo "$bodylines" | + sed -n 'N;/\nFixes:/D;/\n$/D;/^Fixes:/P' | + sed 's,^.,\t&,') +[ -z "$bad" ] || printf "Missing blank line after 'Fixes' tag:\n$bad\n" + # check missing Fixes: tag bad=$(for fix in $fixes ; do git log --format='%b' -1 $fix | grep -q '^Fixes: ' ||