aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorKristoffer Haugsbakk <code@khaugsbakk.name>2024-01-18 17:12:51 +0100
committerJunio C Hamano <gitster@pobox.com>2024-01-18 12:17:41 -0800
commitc15129b699d9b225e916b84f542b9d3665fccc3d (patch)
tree39de440057530bc06a1533e7aefff7a891e7a631 /config.h
parentecffa3ed51aaa7af0119542ce31a1be5f40edcf9 (diff)
downloadgit-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h b/config.h
index e5e523553c..5dba984f77 100644
--- a/config.h
+++ b/config.h
@@ -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);