diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-02-25 11:54:18 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-25 11:54:18 -0800 |
| commit | d1c983d41b58f272350654c571900663cdd81252 (patch) | |
| tree | 1b4bd260127ce23ef056e29c12c12345d3ac39b8 | |
| parent | 422cae66878b8152453fe89c179dddbe1413cf56 (diff) | |
| parent | 88fb80c4b21b29653eac4b3da6746bb9a35596f7 (diff) | |
| download | git-d1c983d41b58f272350654c571900663cdd81252.tar.xz | |
Merge branch 'ac/string-list-sort-u-and-tests'
Code clean-up using a new helper function introduced lately.
* ac/string-list-sort-u-and-tests:
sparse-checkout: use string_list_sort_u
| -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); |
