Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 5/5] _git: Fix completion of RHS of refspecs.
- X-seq: zsh-workers 36962
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 5/5] _git: Fix completion of RHS of refspecs.
- Date: Sun, 25 Oct 2015 18:35:50 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=X1H G2LlRiYJ46WWOPTD38IXa+Pk=; b=qC4gUtwXwOaeZsXMIa/8TXGL3I+Q3y3jyCE fQbB3rrUsi9CO63OSXxOY4FaXR1S0mbvUwVuneH+MIP8uwKYhe4TWj0jDPJF8SbE kkDwuI741EYe0daOVXSgBsZHtlcbLAil+MXmYnu1muGiyn2IeG4IPEzoDVLa5HJs 0KVx5zrs=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=X1 HG2LlRiYJ46WWOPTD38IXa+Pk=; b=qRWXUF6IuFLnFUYKsw9OJ5YQvk6q42Mo4j mmBUk3+yEAlkARtACD4DtsRJdJL3I8WCmdYvIO/9s3ql65lOq1G4iQU5yICxwhcL gyw8vPzabPLibHj4e4BdRoSlFdHqi3ITTpN/2IU7b+N0Zz5PqcootvlkHxVPtgYL GVTVw6llU=
- 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
Before this patch, 'git push $remote :<TAB>' completed branch names (as though
by `git branch -a`), instead of completing remote branch names sans the
${remote}/ prefix.
---
Completion/Unix/Command/_git | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 5a395aa..f97314e 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5313,7 +5313,8 @@ __git_remotes () {
__git_ref_specs () {
# TODO: This needs to deal with a lot more types of things.
if compset -P '*:'; then
- __git_heads
+ # TODO: have the caller supply the correct remote name, restrict to refs/remotes/${that_remote}/* only
+ __git_remote_branch_names_noprefix
else
compset -P '+'
if compset -S ':*'; then
--
2.1.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author