aboutsummaryrefslogtreecommitdiff
path: root/kde-modules/kde-git-commit-hooks/clang-format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kde-modules/kde-git-commit-hooks/clang-format.sh')
-rwxr-xr-xkde-modules/kde-git-commit-hooks/clang-format.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/kde-modules/kde-git-commit-hooks/clang-format.sh b/kde-modules/kde-git-commit-hooks/clang-format.sh
index 42a16a1d..c8bf7565 100755
--- a/kde-modules/kde-git-commit-hooks/clang-format.sh
+++ b/kde-modules/kde-git-commit-hooks/clang-format.sh
@@ -2,7 +2,7 @@
# Based on okular/hooks/pre-commit, credits go to Albert Astals Cid
-readonly output=$(git clang-format -v --diff)
+readonly output=$(git clang-format --extensions ".cpp, .h, .hpp, .c" -v --diff)
if [[ ! -f .clang-format ]]; then
echo "ERROR: no .clang-format file found in repository root, abort format"