diff options
| -rwxr-xr-x | git-clang-format.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-clang-format.sh b/git-clang-format.sh index 6348652c1..da6e6d8c2 100755 --- a/git-clang-format.sh +++ b/git-clang-format.sh @@ -7,4 +7,6 @@ if [ -z "$CLANG_FORMAT" ]; then fi git "$(basename "$CLANG_FORMAT" | cut -d'-' -f 2-)" --diff "$@" | \ sed "s#+/\*\}\}\}\*/#+ /*}}}*/#" | \ + grep -v '^clang-format did not modify any files$' | \ + grep -v '^no modified files to format$' | \ patch -p1 |
