diff options
author | David Kalnischkies <david@kalnischkies.de> | 2017-06-30 13:07:54 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-07-03 15:29:15 +0200 |
commit | b42836a51121595cc56f080bf412c87107a12000 (patch) | |
tree | c89e4477790573241d05bc1171c1c317cb48d8bb /git-clang-format.sh | |
parent | 405189f2a794ded622a4ae3a83a9b70917faf894 (diff) |
formatter: support running from subdirectories
Gbp-Dch: Ignore
Diffstat (limited to 'git-clang-format.sh')
-rwxr-xr-x | git-clang-format.sh | 1 |
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 |