]> Kevux Git Server - rit/commit
mailmap: stop using the_repository
authorBurak Kaan Karaçay <bkkaracay@gmail.com>
Fri, 20 Feb 2026 06:04:41 +0000 (09:04 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Feb 2026 16:13:58 +0000 (08:13 -0800)
commit999b09348d6302d018165b4b3d289d4579d08e9e
tree8ff2d5e150b4c83f73134086c0343cb06793318c
parent73fd77805fc6406f31c36212846d9e2541d19321
mailmap: stop using the_repository

The 'read_mailmap' and 'read_mailmap_blob' functions rely on the global
'the_repository' variable. Update both functions to accept a
'struct repository' parameter.

Update all callers to pass 'the_repository' to retain the current
behavior.

Signed-off-by: Burak Kaan Karaçay <bkkaracay@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/blame.c
builtin/cat-file.c
builtin/check-mailmap.c
builtin/commit.c
builtin/log.c
builtin/shortlog.c
mailmap.c
mailmap.h
pretty.c
ref-filter.c