aboutsummaryrefslogtreecommitdiff
path: root/builtin/shortlog.c
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2010-06-26 00:41:38 +0100
committerJunio C Hamano <gitster@pobox.com>2010-06-27 10:06:52 -0700
commit1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee (patch)
treeddad96762347505bb9b455b2e891f74b0b320f99 /builtin/shortlog.c
parente8c8b7139c87c3e3017d3bff07f91c4349850d58 (diff)
downloadgit-1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee.tar.gz
git-1d2f80fa79cdc6f7f4fa1cefb47d7d19be3bc5ee.tar.xz
string_list: Fix argument order for string_list_append
Update the definition and callers of string_list_append 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 'builtin/shortlog.c')
-rw-r--r--builtin/shortlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index 86d32fb7f..0a9681ba7 100644
--- a/builtin/shortlog.c
+++ b/builtin/shortlog.c
@@ -115,7 +115,7 @@ static void insert_one_record(struct shortlog *log,
}
}
- string_list_append(buffer, item->util);
+ string_list_append(item->util, buffer);
}
static void read_from_stdin(struct shortlog *log)