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 /mailmap.h | |
| 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 'mailmap.h')
| -rw-r--r-- | mailmap.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,7 @@ #ifndef MAILMAP_H #define MAILMAP_H +struct repository; struct string_list; extern char *git_mailmap_file; @@ -11,9 +12,10 @@ extern char *git_mailmap_blob; int read_mailmap_file(struct string_list *map, const char *filename, unsigned flags); -int read_mailmap_blob(struct string_list *map, const char *name); +int read_mailmap_blob(struct repository *repo, struct string_list *map, + const char *name); -int read_mailmap(struct string_list *map); +int read_mailmap(struct repository *repo, struct string_list *map); void clear_mailmap(struct string_list *map); int map_user(struct string_list *map, |
