mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
38148: _git: reflog: complete references next to commands
'git reflog show' is the default subcommand, so git reflog <tab> should complete subcommands and references.
This commit is contained in:
parent
c82ce14950
commit
666a7f5845
2 changed files with 8 additions and 1 deletions
|
|
@ -3069,7 +3069,9 @@ _git-reflog () {
|
|||
'delete:delete entries from reflog'
|
||||
'show:show log of ref')
|
||||
|
||||
_describe -t commands command commands && ret=0
|
||||
_alternative \
|
||||
'commands:: _describe -t commands command commands' \
|
||||
'references:: __git_references' && ret=0
|
||||
;;
|
||||
(option-or-argument)
|
||||
curcontext=${curcontext%:*}-$line[1]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue