From: Sylvestre Ledru Date: Tue, 13 Dec 2011 17:39:17 +0000 (+0100) Subject: Factorize some codes in the git hooks X-Git-Tag: 5.4.0-alpha-1~8 X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=commitdiff_plain;h=ca23d1dfcaf926375079627318ff0bc576515666 Factorize some codes in the git hooks Change-Id: I79ec49ce2525941f83a5f35312e9c7d46104baf7 --- diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index 59eb8c2..78fca1d 100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit @@ -90,22 +90,10 @@ indent() { do local ext=$(expr "$file" : ".*\(\..*\)") case $ext in - .xcos) + .xcos|.xml) __indent_Xml; ;; - .xml) - __indent_Xml; - ;; - .h) - __indent_C; - ;; - .c) - __indent_C; - ;; - .hxx) - __indent_C; - ;; - .cpp) + .h|.c|.hxx|.cpp) __indent_C; ;; esac