master TOC | main page | single-page | license
This is for gitolite "g3"; for older (v2.x) documentation click here
You can group repos or users for convenience. The syntax is the same for both and does not distinguish; until you use the group name it could really be either.
Here's an example:
@developers = dilbert alice wally
Group definitions accumulate; this is the same as the above:
@developers = dilbert @developers = alice @developers = wally
You can use one group in another group definition; the values will be expanded right there (meaning later additions will not appear in the second group).
@developers = dilbert alice @interns = ashok @staff = @interns @developers @developers = wally # wally is NOT part of @staff
@all is a special group name that is often convenient to use if you really
mean "all repos" or "all users".
Gitolite cannot truly catch undefined groups because the conf parser is 1-pass, and you're allowed to define a group after it is used, like so:
repo foo RW = @foo @foo = u1 u2
From v3.5.3 on, however, in a simplistic attempt to help people tearing their hair out because of a typo, gitolite will warn if a group is not defined when it is used. (So if you defined it later, either ignore the warning or move the definition up).
Note that these warnings do NOT appear if you're getting user group info from LDAP.