]> git.ipfire.org Git - thirdparty/git.git/commit
config: factor out global config file retrieval
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Thu, 18 Jan 2024 16:12:51 +0000 (17:12 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jan 2024 20:17:41 +0000 (12:17 -0800)
commitc15129b699d9b225e916b84f542b9d3665fccc3d
tree39de440057530bc06a1533e7aefff7a891e7a631
parentecffa3ed51aaa7af0119542ce31a1be5f40edcf9
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>
builtin/config.c
config.c
config.h