We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e101425 commit 99bb0d9Copy full SHA for 99bb0d9
1 file changed
tools/git-pre-commit-cppcheck
@@ -38,7 +38,7 @@ fi
38
39
# We should pass only added or modified C/C++ source files to cppcheck.
40
changed_files=$(git diff-index --cached $against | \
41
- grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -d' ' -f 2)
+ grep -E '[MA] .*\.(c|cpp|cc|cxx)$' | cut -f 2)
42
43
if [ -n "$changed_files" ]; then
44
cppcheck --error-exitcode=1 $changed_files
0 commit comments