summaryrefslogtreecommitdiff
path: root/git-clang-format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-clang-format.sh')
-rwxr-xr-xgit-clang-format.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-clang-format.sh b/git-clang-format.sh
new file mode 100755
index 000000000..7cbb5ccd7
--- /dev/null
+++ b/git-clang-format.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+git clang-format-3.8 --diff "$@" | sed "s#+/\*\}\}\}\*/#+ /*}}}*/#" | patch -p1