summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorm0viefreak <m0viefreak.cm@googlemail.com>2016-03-13 23:01:57 +0100
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-03-15 00:07:15 +0000
commit666a7f5845ee88f4e736a4f0f3921c69314eb15c (patch)
tree35a388e5686f9f4593d484e9ea5a57562b3b8240 /Completion
parentc82ce14950c327d45fe8a1dfece0f883a420641a (diff)
downloadzsh-666a7f5845ee88f4e736a4f0f3921c69314eb15c.tar.gz
zsh-666a7f5845ee88f4e736a4f0f3921c69314eb15c.tar.xz
zsh-666a7f5845ee88f4e736a4f0f3921c69314eb15c.zip
38148: _git: reflog: complete references next to commands
'git reflog show' is the default subcommand, so

  git reflog <tab>

should complete subcommands and references.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index e3d7231d3..ea2d4857a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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]: