]> git.ipfire.org Git - thirdparty/git.git/commit
completion: add helper to count path components
authorDavid Mandelberg <david@mandelberg.org>
Sun, 23 Mar 2025 21:05:46 +0000 (17:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Mar 2025 06:03:12 +0000 (23:03 -0700)
commit5637bdc352a7763e30290bb37239a61cb9865d1b
treead3fa9340f66998848f1a6fcf32234f256433c33
parent6a64ac7b014fa2cfa7a69af3c253bcd53a94b428
completion: add helper to count path components

A follow-up commit will use this with for-each-ref to strip the right
number of path components from refnames.

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh