diff options
Diffstat (limited to 'include/git2/config.h')
| -rw-r--r-- | include/git2/config.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/config.h b/include/git2/config.h index 83ed2f91c..bafac6804 100644 --- a/include/git2/config.h +++ b/include/git2/config.h @@ -52,6 +52,18 @@ struct git_config_file { GIT_EXTERN(int) git_config_find_global(char *global_config_path); /** + * Locate the path to the system configuration file + * + * If /etc/gitconfig doesn't exist, it will look for + * %PROGRAMFILES%\Git\etc\gitconfig. + + * @param system_config_path Buffer of GIT_PATH_MAX length to store the path + * @return GIT_SUCCESS if a system configuration file has been + * found. Its path will be stored in `buffer`. + */ +GIT_EXTERN(int) git_config_find_system(char *system_config_path); + +/** * Open the global configuration file * * Utility wrapper that calls `git_config_find_global` |
