diff options
Diffstat (limited to '.git-hooks')
-rwxr-xr-x | .git-hooks/pre-commit | 8 |
1 files changed, 8 insertions, 0 deletions
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; |