git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSOC PATCH 0/2] mailmap: reduce global state

From
Burak Kaan Karaçay <bkkaracay@gmail.com>
Date
Feb 19, 2026, 12:59 UTC
Message-ID
<20260219125954.3539324-1-bkkaracay@gmail.com>
Hi,

I am an applicant for GSoC 2026, aiming for the "Refactoring in order to reduce Git's global state" project. I have already submitted my microproject, so please treat this series simply as an extra familiarization exercise to better understand the codebase and the goals of the project.

The project description mainly focuses on 'environment.c' but I noticed that an Outreachy intern is currently working in that area. To avoid stepping on anyone's toes or duplicating work, I decided to look for other subsystems and chose 'mailmap.c', which currently relies on 'the_repository' and global configuration variables.

This patch series aims to reduce the global variable dependency of the mailmap subsystem:

  - Patch 1 eliminates the implicit 'the_repository' dependency in the
    'read_mailmap' and 'read_mailmap_blob' functions by adding a
    'struct repository' parameter.
  - Patch 2 removes the 'git_mailmap_file' and 'git_mailmap_blob' global
    variables, shifting to on-demand configuration reading via the config
    set helpers and using local variables.
Thanks.
Burak Kaan Karaçay (2):
  mailmap: stop using the_repository
  mailmap: drop global config variables
 builtin/blame.c         |  2 +-
 builtin/cat-file.c      |  2 +-
 builtin/check-mailmap.c |  4 ++--
 builtin/commit.c        |  2 +-
 builtin/log.c           |  2 +-
 builtin/shortlog.c      |  2 +-
 environment.c           | 19 -------------------
 mailmap.c               | 30 +++++++++++++++++++-----------
 mailmap.h               |  8 +++-----
 pretty.c                |  2 +-
 ref-filter.c            |  2 +-
 11 files changed, 31 insertions(+), 44 deletions(-)
-- 
2.52.0
Next: Burak Kaan Karaçay
Message 1 of 9 in “mailmap: reduce global state”
  1. 0/2 mailmap: reduce global stateBurak Kaan Karaçay, Feb 19, 2026
  2. 1/2 mailmap: stop using the_repositoryBurak Kaan Karaçay, Feb 19, 2026
  3. 2/2 mailmap: drop global config variablesBurak Kaan Karaçay, Feb 19, 2026
  4. Junio C HamanoFeb 19, 2026
  5. Junio C HamanoFeb 19, 2026
  6. 0/2 mailmap: reduce global stateBurak Kaan Karaçay, Feb 20, 2026
  7. 1/2 mailmap: stop using the_repositoryBurak Kaan Karaçay, Feb 20, 2026
  8. 2/2 mailmap: drop global config variablesBurak Kaan Karaçay, Feb 20, 2026
  9. Junio C HamanoFeb 20, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.