diff options
author | Julian Phillips <julian@quantumfyre.co.uk> | 2010-06-26 00:41:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-27 10:06:51 -0700 |
commit | b684e977363ee5cb53d83c69f2298d7898c5f89a (patch) | |
tree | b5f70daef883213e3f69643113601cc07e872083 /builtin/ls-files.c | |
parent | cb944f6b5009e4788041a5194d73b92a0620c9d9 (diff) | |
download | git-b684e977363ee5cb53d83c69f2298d7898c5f89a.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-files.c b/builtin/ls-files.c index c0fbcdcf4f..3eeacdc699 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) |