Revert "Skip the indentation for deleted files" 24/7224/1
Vincent COUVERT [Tue, 22 May 2012 19:41:40 +0000 (21:41 +0200)]
This reverts commit ce01d176e60b8e570a40a158a08ea0e0d0737769

Change-Id: Ide7abf6b4f1b9ea699c01b7de35173def9bb3f9a

git_hooks/pre-commit

index f93a2de..6776f15 100755 (executable)
@@ -87,10 +87,8 @@ indent() {
     fi
 
     # loop on modified files
-    git diff --cached --name-status $against |while read st file;
+    git diff --cached --name-only $against |while read file;
     do
-        # skip deleted files
-        if [ "$st" == 'D' ]; then continue; fi
         local ext=$(expr "$file" : ".*\(\..*\)")
         case $ext in
         .xcos|.xml)