summaryrefslogtreecommitdiffstats
path: root/resolve-undo.c
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2010-06-26 01:41:34 +0200
committerJunio C Hamano <gitster@pobox.com>2010-06-27 19:06:51 +0200
commitb684e977363ee5cb53d83c69f2298d7898c5f89a (patch)
treeb5f70daef883213e3f69643113601cc07e872083 /resolve-undo.c
parentstring_list: Fix argument order for print_string_list (diff)
downloadgit-b684e977363ee5cb53d83c69f2298d7898c5f89a.tar.xz
git-b684e977363ee5cb53d83c69f2298d7898c5f89a.zip
string_list: Fix argument order for for_each_string_list
Update the definition and callers of for_each_string_list 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 'resolve-undo.c')
-rw-r--r--resolve-undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolve-undo.c b/resolve-undo.c
index 0f50ee0484..e93b3d1b53 100644
--- a/resolve-undo.c
+++ b/resolve-undo.c
@@ -50,7 +50,7 @@ static int write_one(struct string_list_item *item, void *cbdata)
void resolve_undo_write(struct strbuf *sb, struct string_list *resolve_undo)
{
- for_each_string_list(write_one, resolve_undo, sb);
+ for_each_string_list(resolve_undo, write_one, sb);
}
struct string_list *resolve_undo_read(const char *data, unsigned long size)