diff options
| author | Vicent Martà <tanoku@gmail.com> | 2011-05-19 14:18:57 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2011-05-19 14:18:57 -0700 |
| commit | 274f2c213fdb2402b586827e6e6e27b2e055101c (patch) | |
| tree | db8c6b14f74d9518ad7694b6bc9c67f26d7e6c5d /include/git2 | |
| parent | 44d16d6fb2987d4025714214139b22fc1a2ccfe1 (diff) | |
| parent | 6421c49a3726b4132aafcc780016f5a984832caf (diff) | |
| download | libgit2-274f2c213fdb2402b586827e6e6e27b2e055101c.tar.gz | |
Merge pull request #193 from carlosmn/config
A couple of config improvements
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 3ebbe64de..9ae54f112 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -51,7 +51,21 @@ GIT_EXTERN(int) git_config_new(git_config **out); GIT_EXTERN(int) git_config_open_bare(git_config **cfg_out, const char *path); /** + * Open the global configuration file at $HOME/.gitconfig * + * @param cfg pointer to the configuration + */ +GIT_EXTERN(int) git_config_open_global(git_config **cfg); + +/** + * Add a config backend to an existing instance + * + * Note that the configuration will call the backend's ->free() + * function. + * + * @param cfg the configuration to add the backend to + * @param backend the backend to add + * @param priority the priority the backend should have */ GIT_EXTERN(int) git_config_add_backend(git_config *cfg, git_config_backend *backend, int priority); |
