SVN::H...eTypes(3pm)

πŸ“¦
version 1.36 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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> 🫢


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