1 /*
2  *             Copyright Andrej Mitrovic 2013.
3  *  Distributed under the Boost Software License, Version 1.0.
4  *     (See accompanying file LICENSE_1_0.txt or copy at
5  *           http://www.boost.org/LICENSE_1_0.txt)
6  */
7 module git.config;
8 
9 import deimos.git2.config;
10 
11 /**
12     Priority level of a config file.
13     These priority levels correspond to the natural escalation logic
14     (from higher to lower) when searching for config entries in git.git.
15 
16     todo: fix up the docs here:
17 
18     git_config_open_default() and git_repository_config() honor those
19     priority levels as well.
20 */
21 enum GitConfigLevel
22 {
23 	/** System-wide configuration file; /etc/gitconfig on Linux systems. */
24 	system = GIT_CONFIG_LEVEL_SYSTEM,
25 
26 	/** XDG compatible configuration file; typically ~/.config/git/config. */
27 	xdg = GIT_CONFIG_LEVEL_XDG,
28 
29 	/**
30         User-specific configuration file (also called Global configuration file),
31         typically ~/.gitconfig.
32     */
33     global = GIT_CONFIG_LEVEL_GLOBAL,
34 
35 	/** Repository specific configuration file - $WORK_DIR/.git/config on non-bare repos. */
36 	local = GIT_CONFIG_LEVEL_LOCAL,
37 
38 	/** Application specific configuration file - freely defined by applications. */
39 	app = GIT_CONFIG_LEVEL_APP,
40 
41 	/**
42         Represents the highest level available config file (i.e. the most
43         specific config file available that actually is loaded).
44     */
45     highest = GIT_CONFIG_HIGHEST_LEVEL,
46 }