diff options
| author | Carlos Martín Nieto <cmn@elego.de> | 2011-05-17 14:18:42 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@elego.de> | 2011-05-17 14:31:57 +0200 |
| commit | 32234541f6d1576149960aa272ccb7219b68ff01 (patch) | |
| tree | b5786a71e5a75b95499a9a978bafa735fe6f55a1 /include/git2 | |
| parent | c9662061f25ea51f39018a278b98c9a9b4410e84 (diff) | |
| download | libgit2-32234541f6d1576149960aa272ccb7219b68ff01.tar.gz | |
Implement git_config_open_global
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 3ebbe64de..4e10a5c7a 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -51,6 +51,13 @@ 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); + +/** * */ GIT_EXTERN(int) git_config_add_backend(git_config *cfg, git_config_backend *backend, int priority); |
