We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad0a66 commit 0f00e85Copy full SHA for 0f00e85
.githooks/pre-commit-clang-format
@@ -72,7 +72,8 @@ patch=`mktemp -p /tmp ${prefix}.XXXXXX.patch`
72
$DELETE_OLD_PATCHES && rm -f /tmp/$prefix*.patch
73
74
# create one patch containing all changes to the files
75
-git diff-index --cached --diff-filter=ACMR --name-only $against -- | while read file;
+# exclude files under external
76
+git diff-index --cached --diff-filter=ACMR --name-only $against -- . ':!external' | while read file;
77
do
78
# ignore file if we do check for file extensions and the file
79
# does not match any of the extensions specified in $FILE_EXTS
0 commit comments