]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
config: allow for platform-specific core.* config settings
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 30 Oct 2018 18:40:04 +0000 (11:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 31 Oct 2018 03:46:21 +0000 (12:46 +0900)
commit70fc5793dfdf8ba8586ca130674f6896eb3eb37a
treebd1dd8ab11a2178c92f92d7f6cca7dd029a44d77
parent409670f34ed5a2bc4f508f3aee9f809922b339dc
config: allow for platform-specific core.* config settings

In the Git for Windows project, we have ample precendent for config
settings that apply to Windows, and to Windows only.

Let's formalize this concept by introducing a platform_core_config()
function that can be #define'd in a platform-specific manner.

This will allow us to contain platform-specific code better, as the
corresponding variables no longer need to be exported so that they can
be defined in environment.c and be set in config.c

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c
compat/mingw.h
config.c
git-compat-util.h