From: Clint Adams <schizo@debian.org>
To: martin f krafft <madduck@debian.org>, 527300@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#527300: git-log branchname <TAB> suggests refs instead of pathnames
Date: Wed, 6 May 2009 16:35:21 +0000 [thread overview]
Message-ID: <20090506163521.GA2439@scru.org> (raw)
In-Reply-To: <20090506161550.GA23943@piper.oerlikon.madduck.net>
On Wed, May 06, 2009 at 06:15:50PM +0200, martin f krafft wrote:
> git log branchname [-- ]path<TAB> (with or without --)
>
> This should suggest local files (and index files), but not more
> refs.
Does this do the right thing?
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.120
diff -u -r1.120 _git
--- Completion/Unix/Command/_git 20 Apr 2009 03:15:43 -0000 1.120
+++ Completion/Unix/Command/_git 6 May 2009 16:33:22 -0000
@@ -1815,8 +1815,8 @@
case $state in
(files)
_arguments -S \
- '::index file:__git_cached_files' \
- '*::branch:__git_commit_ranges2' && ret=0
+ ':branch:__git_commit_ranges2' \
+ '*:index file:__git_cached_files' && ret=0
;;
esac
}
next parent reply other threads:[~2009-05-06 16:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090506161550.GA23943@piper.oerlikon.madduck.net>
2009-05-06 16:35 ` Clint Adams [this message]
2009-05-06 16:49 ` martin f krafft
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=20090506163521.GA2439@scru.org \
--to=schizo@debian.org \
--cc=527300@bugs.debian.org \
--cc=madduck@debian.org \
--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).