From 6aea51bc3bf3c5318b97b5bddc405c29f1b23e8e Mon Sep 17 00:00:00 2001 From: Burak Kaan Karaçay Date: Fri, 20 Feb 2026 09:04:42 +0300 Subject: mailmap: drop global config variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Junio C Hamano --- mailmap.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'mailmap.h') diff --git a/mailmap.h b/mailmap.h index fda329d715..6866cb6f1d 100644 --- a/mailmap.h +++ b/mailmap.h @@ -4,9 +4,6 @@ struct repository; struct string_list; -extern char *git_mailmap_file; -extern char *git_mailmap_blob; - /* Flags for read_mailmap_file() */ #define MAILMAP_NOFOLLOW (1<<0) -- cgit v1.3-6-g1900