pre-commit: Add --leave-preprocessor-space
authorEdward Hervey <bilboed@bilboed.com>
Mon, 12 Apr 2010 13:27:41 +0000 (15:27 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Apr 2010 13:27:41 +0000 (15:27 +0200)
This puts it in sync with core/tools/gst-indent.

hooks/pre-commit.hook

index 02641bf..607c991 100755 (executable)
@@ -42,7 +42,8 @@ INDENT_PARAMETERS="--braces-on-if-line \
        --continuation-indentation4 \
        --honour-newlines \
        --tab-size8 \
-       --indent-level2"
+       --indent-level2 \
+       --leave-preprocessor-space"
 
 echo "--Checking style--"
 for file in `git-diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do