Closed raspy closed 6 years ago
Thank you for your contribution and submitting a PR. Looking at the numbers this would be really a cool improvements. I'm travelling for the next couple of days hence it will take me a few more days to look into it.
Locally merged
As a follow-up for #1, I would like to submit my changes. These were mostly around performance, but also two bugfixes:
Since my use case was to prevent large files uploaded (that should go into LFS), the first limitation was a major drawback that allowed large files to slip through.
As for performance, I have tested scenarios with file size hook with two different patterns set:
Every commit that introduced a performance change is accompanied with a longer description why the change was made and what was the result.
Please feel free to review and accept unless there are concerns. Should you have any questions, please don't hesitate to ask.