diff options
| author | Burak Kaan Karaçay <bkkaracay@gmail.com> | 2026-02-20 09:04:41 +0300 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-20 08:13:58 -0800 |
| commit | 999b09348d6302d018165b4b3d289d4579d08e9e (patch) | |
| tree | 8ff2d5e150b4c83f73134086c0343cb06793318c /builtin/commit.c | |
| parent | 73fd77805fc6406f31c36212846d9e2541d19321 (diff) | |
| download | git-999b09348d6302d018165b4b3d289d4579d08e9e.tar.xz | |
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>
Diffstat (limited to 'builtin/commit.c')
| -rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index 9e3a09d532..3700f66ba9 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1155,7 +1155,7 @@ static const char *find_author_by_nickname(const char *name) setup_revisions(ac, av, &revs, NULL); revs.mailmap = xmalloc(sizeof(struct string_list)); string_list_init_nodup(revs.mailmap); - read_mailmap(revs.mailmap); + read_mailmap(the_repository, revs.mailmap); if (prepare_revision_walk(&revs)) die(_("revision walk setup failed")); |
