[Libreoffice-commits] .: git-hooks/pre-commit

David Tardon dtardon at kemper.freedesktop.org
Sun Apr 24 03:09:19 PDT 2011


 git-hooks/pre-commit |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 66f422450a7b080041ddd03f23cfed52dcdaef5c
Author: David Tardon <dtardon at redhat.com>
Date:   Sun Apr 24 12:07:57 2011 +0200

    do not try to check removed files

diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index 6c6fe4e..4f3809a 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -66,7 +66,7 @@ sub check_and_fix_whitespace($)
         system( "git diff > $stash" );
         system( "git checkout ." );
     }
-    open( FILES, "git diff-index --cached --name-only $head |" ) || die "Cannot run git diff-index.";
+    open( FILES, "git diff-index --cached --diff-filter=ACM --name-only $head |" ) || die "Cannot run git diff-index.";
     while( my $file = <FILES> ) {
         chomp( $file );
         if ( $file ne "GNUmakefile" &&


More information about the Libreoffice-commits mailing list