diff options
| author | Amisha Chhajed <amishhhaaaa@gmail.com> | 2026-01-21 18:30:05 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-21 09:39:59 -0800 |
| commit | 49223593fd743998d13fcd27fceaf1e0095bb08e (patch) | |
| tree | f04ae04c44963a36bd2671aae8280a45d7dd22e0 /contrib/persistent-https | |
| parent | 9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff) | |
| download | git-49223593fd743998d13fcd27fceaf1e0095bb08e.tar.gz git-49223593fd743998d13fcd27fceaf1e0095bb08e.zip | |
sparse-checkout: optimize string_list construction and add tests to verify deduplication.
Improve O(n^2) complexity to O(n log n) while building a sorted
'string_list' by constructing it unsorted then sorting it
followed by removing duplicates.
sparse-checkout deduplicates repeated cone-mode patterns,
but this behaviour was previously untested, add tests that
verify that sparse-checkout file contain each cone
pattern only once and sparse-checkout list reports each pattern
only once.
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
Acked-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
