SVN::H...eTypes(3pm)
π NAME π
SVN::Hooks::CheckMimeTypes β bestie, this one makes your repo require the svn:mime-type property. No property, no commit. Periodt. π
β¨ VERSION β¨
version 1.36 π
πΈ SYNOPSIS πΈ
Okay so listen. This SVN::Hooks plugin checks whether the files being added to the repository actually have the svn:mime-type property set. And not just that β for text files, it also checks whether the properties svn:eol-style and svn:keywords are set. Triple check. It's giving thorough. π
Fun fact, this plugin was based on the check-mime-type.pl script over at http://svn.digium.com/view/repotools/check-mime-type.pl β shoutout to the OGs π«Ά
It's active in the pre-commit hook. iykyk.
It's configured by the following directive. π
π¦ CHECK_MIMETYPES([MESSAGE])
This directive turns the checking on, and if the commit doesn't comply, it justβ¦ aborts it. No vibes, no commit. π
The MESSAGE argument is an optional lil help message that gets shown to the user when the commit fails. Lowkey important note though: by default the plugin already inserts a pretty verbose help message when there are errors. So this is extra, on top of that. π
CHECK_MIMETYPES("Use TortoiseSVN -> Properties menu option to set properties.");
π AUTHOR π
Gustavo L. de M. Chaves <gnustavo@cpan.org> π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022 by CPqD <www.cpqd.com.br>. π
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay, honestly. π
And that's the whole page, bestie!! β¨ Written up for perl v5.36.0, dated 2022-09-11, and that's the vibe check for SVN::Hooks::CheckMimeTypes(3pm) β go set those properties, ily, bye!! π¦π
π¦ where this page comes from
- ubuntu noble: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsvn-hooks-perl 1.36-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms