diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 00:41:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 10:06:51 -0700 |
commit | aadceea641806b363ca555ffdc04109ea716c497 (patch) | |
tree | bae93989bf8c6169b23c1c43b8fb0810665ebfaf /mailmap.c | |
parent | 78a395d371ec9fd14297178ec98b8b1042a64fb6 (diff) | |
download | git-aadceea641806b363ca555ffdc04109ea716c497.tar.gz |
string_list: Fix argument order for string_list_insert_at_index
Update the definition and callers of string_list_insert_at_index to
use the string_list as the first argument. This helps make the
string_list API easier to use by being more consistent.
Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.c')
-rw-r--r-- | mailmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -69,7 +69,7 @@ static void add_mapping(struct string_list *map, index = -1 - index; } else { /* create mailmap entry */ - struct string_list_item *item = string_list_insert_at_index(index, old_email, map); + struct string_list_item *item = string_list_insert_at_index(map, index, old_email); item->util = xmalloc(sizeof(struct mailmap_entry)); memset(item->util, 0, sizeof(struct mailmap_entry)); ((struct mailmap_entry *)item->util)->namemap.strdup_strings = 1; |