summaryrefslogtreecommitdiff
path: root/git-hooks
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2011-08-27 23:45:57 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2011-08-27 23:45:57 -0500
commit461074b5c0534cae3473c504f09b937a301e68e6 (patch)
treec6bb98ddd9f7ae1587572915ed9f3ebf2d932135 /git-hooks
parentb216943255ec64463b62da9f34cae4278957cc6d (diff)
disable po handling for the core git-hook
Diffstat (limited to 'git-hooks')
-rwxr-xr-xgit-hooks/pre-commit24
1 files changed, 0 insertions, 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 = <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);