libgit2_d.config

Undocumented in source.

Members

Aliases

git_config_foreach_cb
alias git_config_foreach_cb = int function(const(.git_config_entry)*, void* payload)

A config enumeration callback

git_config_iterator
alias git_config_iterator = libgit2_d.sys.config.git_config_iterator

An opaque structure for a configuration iterator

Enums

git_config_level_t
enum git_config_level_t

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.

git_configmap_t
enum git_configmap_t

Config var type

Functions

git_config_add_file_ondisk
int git_config_add_file_ondisk(libgit2_d.types.git_config* cfg, const(char)* path, .git_config_level_t level, const(libgit2_d.types.git_repository)* repo, int force)

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

git_config_backend_foreach_match
int git_config_backend_foreach_match(libgit2_d.types.git_config_backend* backend, const(char)* regexp, .git_config_foreach_cb callback, void* payload)

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

git_config_delete_entry
int git_config_delete_entry(libgit2_d.types.git_config* cfg, const(char)* name)

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

git_config_delete_multivar
int git_config_delete_multivar(libgit2_d.types.git_config* cfg, const(char)* name, const(char)* regexp)

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

git_config_entry_free
void git_config_entry_free(.git_config_entry* )

Free a config entry

git_config_find_global
int git_config_find_global(libgit2_d.buffer.git_buf* out_)

Locate the path to the global configuration file

git_config_find_programdata
int git_config_find_programdata(libgit2_d.buffer.git_buf* out_)

Locate the path to the configuration file in ProgramData

git_config_find_system
int git_config_find_system(libgit2_d.buffer.git_buf* out_)

Locate the path to the system configuration file

git_config_find_xdg
int git_config_find_xdg(libgit2_d.buffer.git_buf* out_)

Locate the path to the global xdg compatible configuration file

git_config_foreach
int git_config_foreach(const(libgit2_d.types.git_config)* cfg, .git_config_foreach_cb callback, void* payload)

Perform an operation on each config variable.

git_config_foreach_match
int git_config_foreach_match(const(libgit2_d.types.git_config)* cfg, const(char)* regexp, .git_config_foreach_cb callback, void* payload)

Perform an operation on each config variable matching a regular expression.

git_config_free
void git_config_free(libgit2_d.types.git_config* cfg)

Free the configuration and its associated memory and files

git_config_get_bool
int git_config_get_bool(int* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of a boolean config variable.

git_config_get_entry
int git_config_get_entry(.git_config_entry** out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the git_config_entry of a config variable.

git_config_get_int32
int git_config_get_int32(int* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of an integer config variable.

git_config_get_int64
int git_config_get_int64(long* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of a long integer config variable.

git_config_get_mapped
int git_config_get_mapped(int* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name, const(.git_configmap)* maps, size_t map_n)

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

git_config_get_multivar_foreach
int git_config_get_multivar_foreach(const(libgit2_d.types.git_config)* cfg, const(char)* name, const(char)* regexp, .git_config_foreach_cb callback, void* payload)

Get each value of a multivar in a foreach callback

git_config_get_path
int git_config_get_path(libgit2_d.buffer.git_buf* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of a path config variable.

git_config_get_string
int git_config_get_string(const(char)** out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of a string config variable.

git_config_get_string_buf
int git_config_get_string_buf(libgit2_d.buffer.git_buf* out_, const(libgit2_d.types.git_config)* cfg, const(char)* name)

Get the value of a string config variable.

git_config_iterator_free
void git_config_iterator_free(.git_config_iterator* iter)

Free a config iterator

git_config_iterator_glob_new
int git_config_iterator_glob_new(.git_config_iterator** out_, const(libgit2_d.types.git_config)* cfg, const(char)* regexp)

Iterate over all the config variables whose name matches a pattern

git_config_iterator_new
int git_config_iterator_new(.git_config_iterator** out_, const(libgit2_d.types.git_config)* cfg)

Iterate over all the config variables

git_config_lock
int git_config_lock(libgit2_d.types.git_transaction** tx, libgit2_d.types.git_config* cfg)

Lock the backend with the highest priority

git_config_lookup_map_value
int git_config_lookup_map_value(int* out_, const(.git_configmap)* maps, size_t map_n, const(char)* value)

Maps a string value to an integer constant

git_config_multivar_iterator_new
int git_config_multivar_iterator_new(.git_config_iterator** out_, const(libgit2_d.types.git_config)* cfg, const(char)* name, const(char)* regexp)

Get each value of a multivar

git_config_new
int git_config_new(libgit2_d.types.git_config** out_)

Allocate a new configuration object

git_config_next
int git_config_next(.git_config_entry** entry, .git_config_iterator* iter)

Return the current entry and advance the iterator

git_config_open_default
int git_config_open_default(libgit2_d.types.git_config** out_)

Open the global, XDG and system configuration files

git_config_open_global
int git_config_open_global(libgit2_d.types.git_config** out_, libgit2_d.types.git_config* config)

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

git_config_open_level
int git_config_open_level(libgit2_d.types.git_config** out_, const(libgit2_d.types.git_config)* parent, .git_config_level_t level)

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

git_config_open_ondisk
int git_config_open_ondisk(libgit2_d.types.git_config** out_, const(char)* path)

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

git_config_parse_bool
int git_config_parse_bool(int* out_, const(char)* value)

Parse a string value as a bool.

git_config_parse_int32
int git_config_parse_int32(int* out_, const(char)* value)

Parse a string value as an int32.

git_config_parse_int64
int git_config_parse_int64(long* out_, const(char)* value)

Parse a string value as an int64.

git_config_parse_path
int git_config_parse_path(libgit2_d.buffer.git_buf* out_, const(char)* value)

Parse a string value as a path.

git_config_set_bool
int git_config_set_bool(libgit2_d.types.git_config* cfg, const(char)* name, int value)

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

git_config_set_int32
int git_config_set_int32(libgit2_d.types.git_config* cfg, const(char)* name, int value)

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

git_config_set_int64
int git_config_set_int64(libgit2_d.types.git_config* cfg, const(char)* name, long value)

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

git_config_set_multivar
int git_config_set_multivar(libgit2_d.types.git_config* cfg, const(char)* name, const(char)* regexp, const(char)* value)

Set a multivar in the local config file.

git_config_set_string
int git_config_set_string(libgit2_d.types.git_config* cfg, const(char)* name, const(char)* value)

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

git_config_snapshot
int git_config_snapshot(libgit2_d.types.git_config** out_, libgit2_d.types.git_config* config)

Create a snapshot of the configuration

Structs

git_config_entry
struct git_config_entry

An entry in a configuration file

git_configmap
struct git_configmap

Mapping from config variables to values.

Meta