diff options
Diffstat (limited to 'git-hooks')
-rwxr-xr-x | git-hooks/pre-commit | 24 |
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); |