X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=devtools%2Fcheck-git-log.sh;h=f9d0550393b9f19312ec76f94221dedbb5ec993c;hb=23d7ad5db41cefac70d06e58fbc6436590ddcefb;hp=d39064f9d98f50ed7ce0ca47fba0867bbc473efa;hpb=40fd87486799d50c78e24ff90337ca1dc1debc13;p=dpdk.git diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh index d39064f9d9..f9d0550393 100755 --- a/devtools/check-git-log.sh +++ b/devtools/check-git-log.sh @@ -95,10 +95,12 @@ bad=$(echo "$headlines" | grep -E --color=always \ -e ':.*\<(Armv7|ARMv7|ArmV7|armV7|ARMV7)\>' \ -e ':.*\<(Armv8|ARMv8|ArmV8|armV8|ARMV8)\>' \ -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ @@ -111,9 +113,13 @@ bad=$(echo "$headlines" | grep -E --color=always \ -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\' \ + -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ + -e ':.*\' \ -e ':.*\' \ -e ':.*\<[Vv]lan\>' \ -e ':.*\' \ @@ -155,6 +161,24 @@ bad=$(echo "$tags" | sed 's,^.,\t&,') [ -z "$bad" ] || printf "Wrong tag:\n$bad\n" +# check missing Coverity issue: tag +bad=$(for commit in $commits; do + body=$(git log --format='%b' -1 $commit) + echo "$body" | grep -qi coverity || continue + echo "$body" | grep -q '^Coverity issue:' && continue + git log --format='\t%s' -1 $commit +done) +[ -z "$bad" ] || printf "Missing 'Coverity issue:' tag:\n$bad\n" + +# check missing Bugzilla ID: tag +bad=$(for commit in $commits; do + body=$(git log --format='%b' -1 $commit) + echo "$body" | grep -qi bugzilla || continue + echo "$body" | grep -q '^Bugzilla ID:' && continue + git log --format='\t%s' -1 $commit +done) +[ -z "$bad" ] || printf "Missing 'Bugzilla ID:' tag:\n$bad\n" + # check missing Fixes: tag bad=$(for fix in $fixes ; do git log --format='%b' -1 $fix | grep -q '^Fixes: ' ||