Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/4] _git: reflog: complete references next to commands
- X-seq: zsh-workers 38148
- From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 1/4] _git: reflog: complete references next to commands
- Date: Sun, 13 Mar 2016 23:01:57 +0100
- Cc: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LuZTAj3mQjLsq9iL8VHxGZEWpPYEH2ASZotp4OaTD8s=; b=Dbkte8e0ItQ5t6y3qhib+hxs2MERRSeO+AInkiyBgqe/21LnKVqjo5psVZZAalOBXj 2Xmwnqh/5+02HTEzKy0CS7ISiPVqKfpmEqdfEtdy/tB/lBdiTbV6+7Us8WXIXM5uvH7N s3ogKGVS37IvQAeORWdMTKkohYlmsVhli08uF9lAG/zGAxk5pfUCC7Y45aYsjhCFSolJ YBpC9K0VMTYj2XUzJkmi9a44arX/VE7epzcHUuHvlbp0yAU+ZBBAxGRG1M30eqquO1ff CIfmIhXB93/XnosP16v4akySB3rVeXaKKlfO8eb4vRCJm6WGySL3rgy5q/4t9VzqwWn/ +vuw==
- In-reply-to: <1457906520-2612-1-git-send-email-m0viefreak.cm@googlemail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1457906520-2612-1-git-send-email-m0viefreak.cm@googlemail.com>
'git reflog show' is the default subcommand, so
git reflog <tab>
should complete subcommands and references.
---
Completion/Unix/Command/_git | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index e3d7231..ea2d485 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]:
--
2.5.0.234.gefc8a62
Messages sorted by:
Reverse Date,
Date,
Thread,
Author