Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 4/5] _git: Complete remotes branch names with slashes correctly.
- X-seq: zsh-workers 36964
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 4/5] _git: Complete remotes branch names with slashes correctly.
- Date: Sun, 25 Oct 2015 18:35:38 +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=hTN xfPMUq3eZ4BibTYpb5exHsME=; b=akpMbenPt1gEkj3+0sXp4LVljcjiTUnmg7+ rB38J/0+Uvc02XaQH6+DR0ePoyryKyAf1uanJj2J1asqUOFTKoU+Pj3zmLgWXShc xQStboPKCRUIPyYnWOwocMDu5cjMwkeBKbsapfiX6/zss196EIWpfdxXLoRunBEA MIWLSZ+0=
- 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=hT NxfPMUq3eZ4BibTYpb5exHsME=; b=RyNtKldjKxc8jq10XrUxRK8gHceU4EHk8N rN6y0+lq5c1lJT1nutMLXMS//N146pt0ga4vpsjav8gXlLjcm1bN3Ly5E8AMycql Kn7bjZeAIqnLb19ln4A370DBh10o7/IZ10yNV5jc9t9JYG3ksO44i6KFuUuWULGa VkGrqk8UE=
- 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
For example, 'git push remote HEAD:foo/bar' creates such branches.
---
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 004a8c9..5a395aa 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5559,7 +5559,7 @@ __git_remote_branch_names_noprefix () {
local expl
declare -a heads
- branch_names=(${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}##*/}:#HEAD})
+ branch_names=(${${${${(f)"$(_call_program remote-branch-refs-noprefix git for-each-ref --format='"%(refname)"' refs/remotes 2>/dev/null)"}#refs/remotes/}#*/}:#HEAD})
__git_command_successful $pipestatus || return 1
_wanted remote-branch-names-noprefix expl 'remote branch name' compadd -M 'r:|/=**' "$@" -a - branch_names
--
2.1.4
Messages sorted by:
Reverse Date,
Date,
Thread,
Author