summaryrefslogtreecommitdiffstats
path: root/git_hooks
diff options
context:
space:
mode:
authorVincent COUVERT <vincent.couvert@scilab-enterprises.com>2012-07-31 09:12:16 +0200
committerVincent COUVERT <vincent.couvert@scilab-enterprises.com>2012-07-31 09:12:16 +0200
commit3513459ca286a5ce921a63f3195b663229f7d45b (patch)
treec284e81963bb565bf52bbe36269b5927f91ae91e /git_hooks
parentff6323b47d6b4a27b989b8d939508cf685e3872c (diff)
downloadscilab-3513459ca286a5ce921a63f3195b663229f7d45b.zip
scilab-3513459ca286a5ce921a63f3195b663229f7d45b.tar.gz
Also indent XML files with 4 spaces.
Change-Id: I002f8fa048c18617468aec5337fd4bd1629d08dc
Diffstat (limited to 'git_hooks')
-rwxr-xr-xgit_hooks/pre-commit4
1 files changed, 2 insertions, 2 deletions
diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit
index 7efe4f3..5a943fe 100755
--- a/git_hooks/pre-commit
+++ b/git_hooks/pre-commit
@@ -140,8 +140,8 @@ __indent_xml() {
140 fi 140 fi
141 141
142 echo "Formatting" $file 142 echo "Formatting" $file
143 "$XMLINDENT" -i 2 -o "$file" "$file" || return 4; 143 "$XMLINDENT" -i 4 -o "$file" "$file" || return 4;
144 git add "$file" || return 5; 144 git add "$file" || return 5;
145} 145}
146 146
147# Pre process before the indent 147# Pre process before the indent