diff options
| author | Amisha Chhajed <136238836+amishhaa@users.noreply.github.com> | 2026-02-13 09:07:28 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-12 20:09:24 -0800 |
| commit | 88fb80c4b21b29653eac4b3da6746bb9a35596f7 (patch) | |
| tree | cf5967652cfacf94707f86a9f0454b48d6363435 /builtin | |
| parent | 453e7b744aef0d9dab62dac6ab030bb643a2e117 (diff) | |
| download | git-88fb80c4b21b29653eac4b3da6746bb9a35596f7.tar.xz | |
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>
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/sparse-checkout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/sparse-checkout.c b/builtin/sparse-checkout.c index cccf630331..34e965bfa6 100644 --- a/builtin/sparse-checkout.c +++ b/builtin/sparse-checkout.c @@ -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); |
