1
0
Fork 0
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:
m0viefreak 2016-03-13 23:01:57 +01:00 committed by Daniel Shahaf
parent c82ce14950
commit 666a7f5845
2 changed files with 8 additions and 1 deletions

View file

@ -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]: