Skip to content

Commit 1975ef9

Browse files
committed
shortlog: initialize mailmap
With this done, we can drop the extra initialization from read_mailmap().
1 parent 70be80e commit 1975ef9

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

builtin/shortlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ void shortlog_init(struct shortlog *log)
373373
{
374374
memset(log, 0, sizeof(*log));
375375

376+
mailmap_init(&log->mailmap);
376377
read_mailmap(the_repository, &log->mailmap);
377378

378379
log->entries = kh_init_shortlog();

mailmap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ int read_mailmap(struct repository *repo, struct mailmap *map)
221221
repo_config_get_pathname(repo, "mailmap.file", &mailmap_file);
222222
repo_config_get_string(repo, "mailmap.blob", &mailmap_blob);
223223

224-
string_list_init_dup(&map->map);
225224
map->map.cmp = namemap_cmp;
226225

227226
if (!mailmap_blob && is_bare_repository())

0 commit comments

Comments
 (0)