diff options
author | Kristoffer Haugsbakk <code@khaugsbakk.name> | 2024-01-18 17:12:51 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-18 12:17:41 -0800 |
commit | c15129b699d9b225e916b84f542b9d3665fccc3d (patch) | |
tree | 39de440057530bc06a1533e7aefff7a891e7a631 /config.h | |
parent | ecffa3ed51aaa7af0119542ce31a1be5f40edcf9 (diff) | |
download | git-c15129b699d9b225e916b84f542b9d3665fccc3d.tar.gz |
config: factor out global config file retrieval
Factor out code that retrieves the global config file so that we can use
it in `gc.c` as well.
Use the old name from the previous commit since this function acts
functionally the same as `git_system_config` but for “global”.
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -382,6 +382,7 @@ int config_error_nonbool(const char *); #endif char *git_system_config(void); +char *git_global_config(void); void git_global_config_paths(char **user, char **xdg); int git_config_parse_parameter(const char *, config_fn_t fn, void *data); |