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>

Amisha Chhajed committed Feb 13, 2026 at 09:07 UTC 88fb80c4b21b29653eac4b3da6746bb9a35596f7
1 file changed +1 -2
builtin/sparse-checkout.c
+1 -2
@@ -94,8 +94,7 @@ static int sparse_checkout_list(int argc, const char **argv, const char *prefix,
94 string_list_append(&sl, pe->pattern + 1);
95 }
96
97 - string_list_sort(&sl);
98 - string_list_remove_duplicates(&sl, 0);
97 + string_list_sort_u(&sl, 0);
98
99 for (i = 0; i < sl.nr; i++) {
100 quote_c_style(sl.items[i].string, NULL, stdout, 0);