summaryrefslogtreecommitdiff
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorJulian Phillips <julian@quantumfyre.co.uk>2010-06-25 23:41:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-27 17:06:51 (GMT)
commitb684e977363ee5cb53d83c69f2298d7898c5f89a (patch)
treeb5f70daef883213e3f69643113601cc07e872083 /builtin/ls-files.c
parentcb944f6b5009e4788041a5194d73b92a0620c9d9 (diff)
downloadgit-b684e977363ee5cb53d83c69f2298d7898c5f89a.zip
git-b684e977363ee5cb53d83c69f2298d7898c5f89a.tar.gz
git-b684e977363ee5cb53d83c69f2298d7898c5f89a.tar.bz2
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 'builtin/ls-files.c')
-rw-r--r--builtin/ls-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c
index c0fbcdc..3eeacdc 100644
--- a/builtin/ls-files.c
+++ b/builtin/ls-files.c
@@ -186,7 +186,7 @@ static void show_ru_info(const char *prefix)
{
if (!the_index.resolve_undo)
return;
- for_each_string_list(show_one_ru, the_index.resolve_undo, NULL);
+ for_each_string_list(the_index.resolve_undo, show_one_ru, NULL);
}
static void show_files(struct dir_struct *dir, const char *prefix)