The Gitolite source tree comes with a few VREFs ready to be used. To use them, you simply add rules similar to the ones we saw at the end of the previous section. We will look at a couple of them to get a feel for how they are used, and then design one from scratch so we know how to add our own.
Tip
If you look in the Gitolite source tree, you won't actually find a VREF called NAME
. This is because NAME
is special and the code for that is built in to Gitolite.
Newcomers to Git may sometimes end up creating a commit that changes a lot more files than are strictly necessary for the change being made. Perhaps they added debugging statements to some other files, or perhaps they accidentally saved some files with a different line-ending (Unix LF versus Windows CRLF), and so on.
If you are sure that your new developers are given relatively simple tasks, and at no time should any particular task touch more than, say, five files, you can use the COUNT
VREF to prevent them...