From 666a7f5845ee88f4e736a4f0f3921c69314eb15c Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Sun, 13 Mar 2016 23:01:57 +0100 Subject: 38148: _git: reflog: complete references next to commands 'git reflog show' is the default subcommand, so git reflog should complete subcommands and references. --- Completion/Unix/Command/_git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion') 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]: -- cgit 1.4.1