Book Image

Gitolite Essentials

By : Sitaram Chamarty
Book Image

Gitolite Essentials

By: Sitaram Chamarty

Overview of this book

Table of Contents (19 chapters)
Gitolite Essentials
About the Author
About the Reviewers

The include statement

You can also split up your access rules and group definitions into multiple files, and include them into the main conf file (conf/gitolite.conf in your gitolite-admin repository). For example, you can keep all group information (that is, which users are members of which groups) in a separate file and include that. The syntax is very simple; here's an example:

include "groups.conf"

This will look for a file called groups.conf in the conf directory and include its contents at that point.

Advanced users may note that this command also accepts wildcards. For example, you might have several individual conf files in a subdirectory of conf called foss. If you don't want to name each of them separately, you can say:

include "foss/*.conf"