Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: stash: save: _guard the message argument to not start with a '-'
- X-seq: zsh-users 18657
- From: m0viefreak <m0viefreak.cm@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: [PATCH] _git: stash: save: _guard the message argument to not start with a '-'
- Date: Sat, 22 Mar 2014 18:20:31 +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; bh=HEJZ5uo3xjDtYqJ7bChGCvXK2PkKZWwxAYYsIn8/Wc8=; b=IJeecNHo8/6uDQvyxb3xKJVQjpGb4f/bwkhn1ARxfiBlgjSoJV/bcAE33bkz+YaxZL i3/gxAZ90O6FTzFockm2o8RvWhlCy6sXxCF7FGFROe5huIZYYfEXmb07E59MCdbvm2zL Xj6UdDauXuh8eiOClMGPo7rBIHqHkRoMP2mYCAmhChADiGLBWTFegtyQZU6vx21cilPB s+zXCMgBcPzXQBmXEsSdChFAVlmYshJCNrBcmRtr8MrfrTg6tj2vMTBRjRQvIBqSoYdJ avXfZdf48uov2lglIksYshx8d42UK7Wh9kV6vLYc1u192iL6zqNUGyaehqcEvHrgGxGU MZyQ==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Without this patch it isn't possible to cycle through the options in
menu completion when completing 'git stash save -<tab>'.
The same solution is used in _git-for-each-ref().
---
Completion/Unix/Command/_git | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 606b5e0..719f170 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1536,7 +1536,7 @@ _git-stash () {
'(--keep-index )--no-keep-index[all changes already added to the index are undone]' \
'(-q --quiet)'{-q,--quiet}'[suppress all output]' \
'(-u --include-untracked)'{-u,--include-untracked}'[include untracked files]' \
- '::message' && ret=0
+ ':: :_guard "([^-]?#|)" message' && ret=0
;;
(list)
local -a log_options revision_options
--
1.9.1.286.g5172cb3
Messages sorted by:
Reverse Date,
Date,
Thread,
Author