From 461074b5c0534cae3473c504f09b937a301e68e6 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 27 Aug 2011 23:45:57 -0500 Subject: [PATCH] disable po handling for the core git-hook --- git-hooks/pre-commit | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/git-hooks/pre-commit b/git-hooks/pre-commit index cdf6e44eaf91..2e1ebf8212f2 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 = ) { -# 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 = ) { - 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);