GitConfigLevel

Priority level of a config file. These priority levels correspond to the natural escalation logic (from higher to lower) when searching for config entries in git.git.

todo: fix up the docs here:

git_config_open_default() and git_repository_config() honor those priority levels as well.

Values

ValueMeaning
systemGIT_CONFIG_LEVEL_SYSTEM

System-wide configuration file; /etc/gitconfig on Linux systems.

xdgGIT_CONFIG_LEVEL_XDG

XDG compatible configuration file; typically ~/.config/git/config.

globalGIT_CONFIG_LEVEL_GLOBAL

User-specific configuration file (also called Global configuration file), typically ~/.gitconfig.

localGIT_CONFIG_LEVEL_LOCAL

Repository specific configuration file - $WORK_DIR/.git/config on non-bare repos.

appGIT_CONFIG_LEVEL_APP

Application specific configuration file - freely defined by applications.

highestGIT_CONFIG_HIGHEST_LEVEL

Represents the highest level available config file (i.e. the most specific config file available that actually is loaded).

Meta