]> git.ipfire.org Git - thirdparty/git.git/commit - config.h
config: rename `git_etc_config()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 19 Apr 2021 12:31:08 +0000 (14:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Apr 2021 21:16:59 +0000 (14:16 -0700)
commitc62a999c6e595692ee3bd8ff1e9435491872a79c
treebbda6898b85ce5893693498835ed11fd2681ef9a
parent89b43f80a514aee58b662ad606e6352e03eaeee4
config: rename `git_etc_config()`

The `git_etc_gitconfig()` function retrieves the system-level path of
the configuration file. We're about to introduce a way to override it
via an environment variable, at which point the name of this function
would start to become misleading.

Rename the function to `git_system_config()` as a preparatory step.
While at it, the function is also refactored to pass memory ownership to
the caller. This is done to better match semantics of
`git_global_config()`, which is going to be introduced in the next
commit.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c
config.c
config.h