Kaydet (Commit) 236b7e19 authored tarafından Michael Stahl's avatar Michael Stahl

git-hooks: don't complain about large .ui files

Looks legit.

Change-Id: I73562d0a8d863868ae717cee97b6497a93df4ee4
üst 66eaee55
......@@ -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
if (/\.xsl$/) # XSLT
my $size = `git cat-file -s :$_`;
# For now let's say large is 500KB
my $limit = 500;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment