From cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 29 Aug 2011 10:19:43 +0000 Subject: run indent twice, it alternates between two 'canonical' forms, also run whitespace remover --- pre-commit | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pre-commit') diff --git a/pre-commit b/pre-commit index da86ca59c..ed2455237 100755 --- a/pre-commit +++ b/pre-commit @@ -1,6 +1,10 @@ #!/bin/sh find src/ -name "*.c" -exec indent {} \; find src/ -name "*.h" -exec indent {} \; +find src/ -name "*.c" -exec indent {} \; +find src/ -name "*.h" -exec indent {} \; +find src/ -name "*.c" -exec contrib/removetrailingwhitespace {} \; +find src/ -name "*.h" -exec contrib/removetrailingwhitespace {} \; if test -x "`which 'dos2unix'`" then find src/ -name "*.c" -exec dos2unix {} \; -- cgit v1.2.3