Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
misc: checkstyle ignore .patch files in trailing whitespace check
[vpp.git]
/
extras
/
scripts
/
checkstyle.sh
diff --git
a/extras/scripts/checkstyle.sh
b/extras/scripts/checkstyle.sh
index
b40f43f
..
ab0e6e4
100755
(executable)
--- a/
extras/scripts/checkstyle.sh
+++ b/
extras/scripts/checkstyle.sh
@@
-23,7
+23,7
@@
SUFFIX="-${CLANG_FORMAT_VER}"
clang-format${SUFFIX} --version
in=$(mktemp)
-git diff ${GIT_DIFF_ARGS} > ${in}
+git diff ${GIT_DIFF_ARGS}
':!*.patch'
> ${in}
line_count=$(sed -n '/^+.*\*INDENT-O[NF][F]\{0,1\}\*/p' ${in} | wc -l)
if [ ${line_count} -gt 0 ] ; then