mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01: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
|
|
@ -1,3 +1,8 @@
|
|||
2016-03-15 m0viefreak <m0viefreak.cm@googlemail.com>
|
||||
|
||||
* 38148: Completion/Unix/Command/_git: reflog: complete
|
||||
references next to commands
|
||||
|
||||
2016-03-11 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 38135: Src/Zle/complete.c: internal: bin_compadd: Add a
|
||||
|
|
|
|||
|
|
@ -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