]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9902-completion.sh
completion: improve sparse-checkout cone mode directory completion
authorLessley Dennington <lessleydennington@gmail.com>
Mon, 7 Feb 2022 17:31:44 +0000 (17:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Feb 2022 18:15:43 +0000 (10:15 -0800)
commitc5f5c5082f813a875c213445135a24c2507021dd
tree194f5e9d663b7f503124dc2e8987090ad8e593e7
parentfd6d9bec145924ba704b34f0788b239bff9d2898
completion: improve sparse-checkout cone mode directory completion

Use new __gitcomp_directories method to complete directory names in cone
mode sparse-checkouts. This method addresses the caveat of poor
performance in monorepos from the previous commit (by completing only one
level of directories).

The unusual character caveat from the previous commit will be fixed by the
final commit in this series.

Co-authored-by: Elijah Newren <newren@gmail.com>
Co-authored-by: Lessley Dennington <lessleydennington@gmail.com>
Signed-off-by: Lessley Dennington <lessleydennington@gmail.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh