summaryrefslogtreecommitdiff
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
parentc82ce14950c327d45fe8a1dfece0f883a420641a (diff)
downloadzsh-666a7f5845ee88f4e736a4f0f3921c69314eb15c.tar.gz
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.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e61f564d..e55cb1ce3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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]: