It's been a bit over a week since the last version of this, with some discussion, but I don't think any requests for changes. So here's an updated version with the minor performance change I mentioned in https://lore.kernel.org/git/fa70c8336f836ebb5b9c196fe291d357@xxxxxxxxxxxxxx/ David Mandelberg (2): completion: add helper to count path components completion: fix bugs with slashes in remote names contrib/completion/git-completion.bash | 49 +++++- t/t9902-completion.sh | 206 ++++++++++++++++++++++--- 2 files changed, 226 insertions(+), 29 deletions(-) -- 2.47.2