mirror of
https://github.com/git/git.git
synced 2026-02-28 02:42:52 +00:00
sparse-checkout: use string_list_sort_u
sparse_checkout_list() uses string_list_sort and string_list_remove_duplicates instead of string_list_sort_u. use string_list_sort_u at that place. Signed-off-by: Amisha Chhajed <136238836+amishhaa@users.noreply.github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
453e7b744a
commit
88fb80c4b2
@@ -94,8 +94,7 @@ static int sparse_checkout_list(int argc, const char **argv, const char *prefix,
|
||||
string_list_append(&sl, pe->pattern + 1);
|
||||
}
|
||||
|
||||
string_list_sort(&sl);
|
||||
string_list_remove_duplicates(&sl, 0);
|
||||
string_list_sort_u(&sl, 0);
|
||||
|
||||
for (i = 0; i < sl.nr; i++) {
|
||||
quote_c_style(sl.items[i].string, NULL, stdout, 0);
|
||||
|
||||
Reference in New Issue
Block a user