[Libreoffice-commits] core.git: .git-hooks/pre-commit
Michael Stahl
mstahl at redhat.com
Mon Oct 30 09:53:28 UTC 2017
.git-hooks/pre-commit | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 236b7e19bb22e11f64765918c153a9ab0a8e53d2
Author: Michael Stahl <mstahl at redhat.com>
Date: Mon Oct 30 10:45:53 2017 +0100
git-hooks: don't complain about large .ui files
Looks legit.
Change-Id: I73562d0a8d863868ae717cee97b6497a93df4ee4
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index d4196dbb5008..b0779e5aaa1f 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -151,6 +151,14 @@ EOM
open( FILES, "git diff --cached --name-only --diff-filter=A -z $against |" ) || die "Cannot run git diff-index.";
while (<FILES>)
{
+ if (/\.ui$/) # .ui files can get large
+ {
+ continue;
+ }
+ if (/\.xsl$/) # XSLT
+ {
+ continue;
+ }
my $size = `git cat-file -s :$_`;
# For now let's say large is 500KB
my $limit = 500;
More information about the Libreoffice-commits
mailing list