Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: Use slashes matchspec for references (as already used for branch names).
- X-seq: zsh-workers 40494
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: Use slashes matchspec for references (as already used for branch names).
- Date: Sun, 5 Feb 2017 09:38:23 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Oj7 D7XWM8M1bdaxOnmnxO9oQ5o0=; b=W7YBb0dKLwQaT+4V4B+rGRSIFHK2trcqi9c mlpsGMXh4t02F9x+sud/I0uYHYCJjV1B6QYC+9+8li42lmg6sCgCTMs4D8J1ewPH CpQ5NddjqK1sU51ovbcg0FhA6cqfge4JpIeq6Xn8Hw8Q6KH/lFbSYgFxZmidBywp qACbKPEQ=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Oj 7D7XWM8M1bdaxOnmnxO9oQ5o0=; b=sRs3HYrj4a6f9OxYdbcgFJIYTs1rXQj3gm 5FVG7hqYNh6RN1OueY3QU1mDVnwCtiIjlSBQt4/7fV1OkdYpqAUD7YmK0MExf9cE o8gN8pMJgPPgslbB6Km9hQ4lN4x2z3or1IDE9T/uD4AbTf8jc41wOLTFioau99A8 nFCdf1y3c=
- 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
---
Completion/Unix/Command/_git | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b5b3e79..fcf367f 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6484,9 +6484,10 @@ __git_references () {
_git_refs_cache_pwd=$PWD
fi
- _wanted references expl 'reference' compadd -a - _git_refs_cache
+ _wanted references expl 'reference' compadd -M 'r:|/=**' -a - _git_refs_cache
}
+# ### currently unused; are some callers of __git_references supposed to call this function?
(( $+functions[__git_local_references] )) ||
__git_local_references () {
local expl
@@ -6497,7 +6498,7 @@ __git_local_references () {
_git_local_refs_cache_pwd=$PWD
fi
- _wanted references expl 'reference' compadd -a - _git_local_refs_cache
+ _wanted references expl 'reference' compadd -M 'r:|/=**' -a - _git_local_refs_cache
}
(( $+functions[__git_remote_references] )) ||
Messages sorted by:
Reverse Date,
Date,
Thread,
Author