diff options
author | Vicent Martà <vicent@github.com> | 2012-08-23 14:10:47 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-08-23 14:10:47 -0700 |
commit | c920e162325d0f9acba46a19c4619e6bfa17707e (patch) | |
tree | bb1d939d73ce2c2bd9d3001c643bcf28602a8271 /include/git2/config.h | |
parent | 5fdc41e76591aebdbae3b49440bc2c8b2430718c (diff) | |
parent | e9ca852e4d77e1b1723a2dceddfa2037677e2fb4 (diff) | |
download | libgit2-c920e162325d0f9acba46a19c4619e6bfa17707e.tar.gz |
Merge pull request #844 from arrbee/init-extended
Add git_repository_init_ext for power initters
Diffstat (limited to 'include/git2/config.h')
-rw-r--r-- | include/git2/config.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index f415fbd9d..21d8a0b05 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -80,15 +80,16 @@ GIT_EXTERN(int) git_config_find_global(char *global_config_path, size_t length); GIT_EXTERN(int) git_config_find_system(char *system_config_path, size_t length); /** - * Open the global configuration file + * Open the global and system configuration files * - * Utility wrapper that calls `git_config_find_global` - * and opens the located file, if it exists. + * Utility wrapper that finds the global and system configuration files + * and opens them into a single prioritized config object that can be + * used when accessing default config data outside a repository. * * @param out Pointer to store the config instance * @return 0 or an error code */ -GIT_EXTERN(int) git_config_open_global(git_config **out); +GIT_EXTERN(int) git_config_open_default(git_config **out); /** * Create a configuration file backend for ondisk files |