Writing your own VREF

Here's an example use case where VREFs come in handy. We'll use this to design a very simple VREF, in a way that cannot be done with the existing rules.

The requirement is simple: for any repository foo, if a repository called l10n contains a directory called foo, then you cannot push any files called *.po to foo.

Tip

This has been adapted from a more complex, real-life use case, but for our purposes we don't need more than this. As you might guess, this is a multi-repository system that is gradually moving toward centralizing the local language files so that translators only have to deal with one repository. Each repository's local language files are moved over when they are deemed ready and from that point on, localization ...

Get Gitolite Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.