]> Kevux Git Server - rit/commit
mailmap: drop global config variables
authorBurak Kaan Karaçay <bkkaracay@gmail.com>
Fri, 20 Feb 2026 06:04:42 +0000 (09:04 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Feb 2026 16:13:58 +0000 (08:13 -0800)
commit6aea51bc3bf3c5318b97b5bddc405c29f1b23e8e
tree782c9682b2cc2ed1561871888a8129d4507ea612
parent999b09348d6302d018165b4b3d289d4579d08e9e
mailmap: drop global config variables

The 'mailmap.file' and 'mailmap.blob' configurations are currently
parsed and stored in the global variables 'git_mailmap_file' and
'git_mailmap_blob'. Since these values are typically only needed once
when initializing a mailmap, there is no need to keep them as global
state throughout the lifetime of the Git process.

To reduce global state, remove these global variables and instead use
'repo_config_get_*' functions to read the configuration on demand.

Signed-off-by: Burak Kaan Karaçay <bkkaracay@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c
mailmap.c
mailmap.h