From: "Jörg Sommer" <joerg@alea.gnuu.de>
To: zsh-workers@sunsite.dk
Cc: "Jörg Sommer" <joerg@alea.gnuu.de>
Subject: [RFC] Use _multi_parts for completing git tree files
Date: Tue, 7 Oct 2008 22:24:03 +0200 [thread overview]
Message-ID: <1223411043-19731-1-git-send-email-joerg@alea.gnuu.de> (raw)
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
next reply other threads:[~2008-10-07 22:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-07 20:24 Jörg Sommer [this message]
2008-10-09 22:01 ` Clint Adams
2008-10-09 23:38 ` Jörg Sommer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1223411043-19731-1-git-send-email-joerg@alea.gnuu.de \
--to=joerg@alea.gnuu.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).