fix(completion): does not suggest repositories after the --branch option

This commit is contained in:
sciencesakura 2026-04-19 14:49:40 +09:00
parent e3f7e3d035
commit 4e51d4d660

View file

@ -20,10 +20,13 @@ _ghq() {
return 0
fi
case "$prev" in
--vcs)
COMPREPLY=( $(compgen -W "$vcs_backends" -- "$cur") );;
--branch|-b)
# expects branch name
;;
--partial)
COMPREPLY=( $(compgen -W "blobless treeless" -- "$cur") );;
--vcs)
COMPREPLY=( $(compgen -W "$vcs_backends" -- "$cur") );;
*)
local arg
for arg in "${words[@]}"; do