aboutsummaryrefslogtreecommitdiff
path: root/scripts/clang-format
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clang-format')
-rwxr-xr-xscripts/clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clang-format b/scripts/clang-format
index d46056c..65cb7a6 100755
--- a/scripts/clang-format
+++ b/scripts/clang-format
@@ -1,3 +1,3 @@
#!/bin/bash
-find . -type f -a '(' -name '*.c' -o -name '*.h' ')' | xargs clang-format -i
+git ls-files | grep '\.[ch]$' | xargs clang-format -i