libgit2

config

Version:
Git config management routines

Objects

Memory representation of a set of config files

Structs

An entry in a configuration file

Mapping from config variables to values

Enums

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.

Config var type

Callbacks

Functions

Free a config entry

Locate the path to the global configuration file

Locate the path to the global xdg compatible configuration file

Locate the path to the system configuration file

Locate the path to the configuration file in ProgramData

Open the global, XDG and system configuration files

Allocate a new configuration object

Add an on-disk config file instance to an existing config

Create a new config instance containing a single on-disk file

Build a single-level focused config object from a multi-level one

Open the global/XDG configuration file according to git's rules

Create a snapshot of the configuration

Free the configuration and its associated memory and files

Get the git_config_entry of a config variable

Get the value of an integer config variable

Get the value of a long integer config variable

Get the value of a boolean config variable

Get the value of a path config variable

Get the value of a string config variable

Get the value of a string config variable

Get each value of a multivar in a foreach callback

Get each value of a multivar

Return the current entry and advance the iterator

Free a config iterator

Set the value of an integer config variable in the config file with the highest level (usually the local one)

Set the value of a long integer config variable in the config file with the highest level (usually the local one)

Set the value of a boolean config variable in the config file with the highest level (usually the local one)

Set the value of a string config variable in the config file with the highest level (usually the local one)

Set a multivar in the local config file

Delete a config variable from the config file with the highest level (usually the local one)

Deletes one or several entries from a multivar in the local config file

Perform an operation on each config variable

Iterate over all the config variables

Iterate over all the config variables whose name matches a pattern

Perform an operation on each config variable matching a regular expression

Query the value of a config variable and return it mapped to an integer constant

Maps a string value to an integer constant

Parse a string value as a bool

Parse a string value as an int32

Parse a string value as an int64

Parse a string value as a path

Perform an operation on each config variable in given config backend matching a regular expression

Lock the backend with the highest priority