diff options
author | Vincent COUVERT <vincent.couvert@scilab.org> | 2012-05-22 21:41:40 +0200 |
---|---|---|
committer | Vincent COUVERT <vincent.couvert@scilab.org> | 2012-05-22 21:47:42 +0200 |
commit | 9f203cd79958b7a8c3105ee471c792936d084b51 (patch) | |
tree | 698860cad2235e3e91d1ffe9fa49578f5b2f46f5 /git_hooks/pre-commit | |
parent | 5a34b9e56dbc9370762f11060ce4c7687fd3588d (diff) | |
download | scilab-9f203cd79958b7a8c3105ee471c792936d084b51.zip scilab-9f203cd79958b7a8c3105ee471c792936d084b51.tar.gz |
Revert "Skip the indentation for deleted files"
This reverts commit ce01d176e60b8e570a40a158a08ea0e0d0737769
Change-Id: Ide7abf6b4f1b9ea699c01b7de35173def9bb3f9a
Diffstat (limited to 'git_hooks/pre-commit')
-rwxr-xr-x | git_hooks/pre-commit | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index f93a2de..6776f15 100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit | |||
@@ -87,10 +87,8 @@ indent() { | |||
87 | fi | 87 | fi |
88 | 88 | ||
89 | # loop on modified files | 89 | # loop on modified files |
90 | git diff --cached --name-status $against |while read st file; | 90 | git diff --cached --name-only $against |while read file; |
91 | do | 91 | do |
92 | # skip deleted files | ||
93 | if [ "$st" == 'D' ]; then continue; fi | ||
94 | local ext=$(expr "$file" : ".*\(\..*\)") | 92 | local ext=$(expr "$file" : ".*\(\..*\)") |
95 | case $ext in | 93 | case $ext in |
96 | .xcos|.xml) | 94 | .xcos|.xml) |