summaryrefslogtreecommitdiffstats
path: root/git_hooks
diff options
context:
space:
mode:
authorVincent COUVERT <vincent.couvert@scilab.org>2012-02-01 09:44:23 +0100
committerClément DAVID <clement.david@scilab-enterprises.com>2012-02-01 11:40:07 +0100
commit18eb3192cf5a0d117047d0ecd2be7d5b34749877 (patch)
tree947644a9b3fa360387f9afb89b2ab83fd281b887 /git_hooks
parent4241102f86336109f91fd5c7bd6d4ddf9a5330b9 (diff)
downloadscilab-18eb3192cf5a0d117047d0ecd2be7d5b34749877.zip
scilab-18eb3192cf5a0d117047d0ecd2be7d5b34749877.tar.gz
Use spaces for Java indentation as in Scilab checkstyle
Change-Id: I286148a87e07bfaa252b4ea259f614814c462c45
Diffstat (limited to 'git_hooks')
-rwxr-xr-xgit_hooks/pre-commit2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit
index 13d1891..54411fc 100755
--- a/git_hooks/pre-commit
+++ b/git_hooks/pre-commit
@@ -175,7 +175,7 @@ __indent_C() {
175# Indent the file with `astyle' if this is a Java file 175# Indent the file with `astyle' if this is a Java file
176__indent_java() { 176__indent_java() {
177 __pre_indent 177 __pre_indent
178 astyle $COMMON_ASTYLE_ARGS --style=java --indent=tab "$file" 178 astyle $COMMON_ASTYLE_ARGS --style=java --indent=spaces=4 "$file"
179 __post_indent 179 __post_indent
180 180
181} 181}