Skip to content

Commit d1c983d

Browse files
committed
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
2 parents 422cae6 + 88fb80c commit d1c983d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/sparse-checkout.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ static int sparse_checkout_list(int argc, const char **argv, const char *prefix,
9494
string_list_append(&sl, pe->pattern + 1);
9595
}
9696

97-
string_list_sort(&sl);
98-
string_list_remove_duplicates(&sl, 0);
97+
string_list_sort_u(&sl, 0);
9998

10099
for (i = 0; i < sl.nr; i++) {
101100
quote_c_style(sl.items[i].string, NULL, stdout, 0);

0 commit comments

Comments
 (0)