Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[RFC] Use _multi_parts for completing git tree files
- X-seq: zsh-workers 25824
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: [RFC] Use _multi_parts for completing git tree files
- Date: Tue, 7 Oct 2008 22:24:03 +0200
- Cc: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=gnuu.de; s=banki; t=1223418745; i=@xxxxxxxxxxxx; bh=mQhydGpS59XZmMKhcSLvsF6FYwtuiQ4iU TAnKT86lpw=; h=From:To:Cc:Subject:Date:Message-Id; b=rPPw3LfjzYpKfL mw4iJUS7edw2KD4+sqDs1lb67FPNiXmPKCloFUts11fOIvrgZNGfWOA42/w0koVA140 UPEDaem5P8rTeX4M2fRAO7JjyUugsho6ysLr4zvT7V2cU8Sv+J7I1DP7p1BqPyP+NVM 1XkKMFM/KRkNTMxgnjZ9hAw=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
This makes it possible to use abbreviated paths for tree files like
git checkout C/U/C/_gi
for
git checkout Completion/Unix/Command/_git
---
Completion/Unix/Command/_git | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index c8a1282..c617613 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -2859,7 +2859,7 @@ __git_tree_files () {
fi
local expl
- _wanted files expl 'tree file' compadd $multi_parts_opts -f -a tree_files
+ _wanted files expl 'tree file' _multi_parts -f $@ -- / tree_files
}
# TODO: deal with things that __git_heads and __git_tags has in common (i.e.,
--
1.6.0.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author