summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-clang-format.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-clang-format.sh b/git-clang-format.sh
index 7cbb5ccd7..d374b66bd 100755
--- a/git-clang-format.sh
+++ b/git-clang-format.sh
@@ -1,2 +1,3 @@
#!/bin/sh
+cd "$(dirname "$0")"
git clang-format-3.8 --diff "$@" | sed "s#+/\*\}\}\}\*/#+ /*}}}*/#" | patch -p1