diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 00:41:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 10:06:51 -0700 |
commit | 78a395d371ec9fd14297178ec98b8b1042a64fb6 (patch) | |
tree | f155b25e547c4c454f5ff1fd0f21398eb27887ee /mailmap.c | |
parent | b684e977363ee5cb53d83c69f2298d7898c5f89a (diff) | |
download | git-78a395d371ec9fd14297178ec98b8b1042a64fb6.tar.gz |
string_list: Fix argument order for string_list_insert
Update the definition and callers of string_list_insert 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
@@ -92,7 +92,7 @@ static void add_mapping(struct string_list *map, mi->name = xstrdup(new_name); if (new_email) mi->email = xstrdup(new_email); - string_list_insert(old_name, &me->namemap)->util = mi; + string_list_insert(&me->namemap, old_name)->util = mi; } debug_mm("mailmap: '%s' <%s> -> '%s' <%s>\n", |