From b42836a51121595cc56f080bf412c87107a12000 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 30 Jun 2017 13:07:54 +0200 Subject: formatter: support running from subdirectories Gbp-Dch: Ignore --- git-clang-format.sh | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3