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

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Aug 27 21:46:14 PDT 2011


 git-hooks/pre-commit |   24 ------------------------
 1 file changed, 24 deletions(-)

New commits:
commit 461074b5c0534cae3473c504f09b937a301e68e6
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Aug 27 23:45:57 2011 -0500

    disable po handling for the core git-hook

diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit
index cdf6e44..2e1ebf8 100755
--- a/git-hooks/pre-commit
+++ b/git-hooks/pre-commit
@@ -110,30 +110,6 @@ EOM
     exit( 1 );
 }
 
-# check for missing doxygen comments in new files
-#my $doxycheck = "../../bin/find-undocumented-classes";
-#if (! -e $doxycheck) {
-#    # bootstrap repo
-#    $doxycheck =~ s|../../||;
-#}
-#open(FILES, "git diff-index --cached --name-only --diff-filter=A $against |") || die "Cannot run git diff-index.";
-#while (my $file = <FILES>) {
-#    chomp($file);
-#    if ($file =~ /\.hxx$/) {
-#        system("$doxycheck -q $file | sed 's|".getcwd()."/||;'");
-#    }
-#}
-
-# run 'msgcat --nowrap' when committing *.po files
-open(FILES, "git diff-index --cached --name-only $against |") || die "Cannot run git diff-index.";
-while (my $file = <FILES>) {
-    chomp($file);
-    if ($file =~ /\.po$/ && -e $file) {
-        system("msgcat --no-wrap $file > $file.KQnBbK6wQE;mv $file.KQnBbK6wQE $file;");
-        system("git add $file");
-    }
-}
-
 # fix whitespace in code
 check_whitespaces( $against);
 


More information about the Libreoffice-commits mailing list