zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#527300: git-log branchname <TAB> suggests refs instead of pathnames
       [not found] <20090506161550.GA23943@piper.oerlikon.madduck.net>
@ 2009-05-06 16:35 ` Clint Adams
  2009-05-06 16:49   ` martin f krafft
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2009-05-06 16:35 UTC (permalink / raw)
  To: martin f krafft, 527300; +Cc: zsh-workers

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
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug#527300: git-log branchname <TAB> suggests refs instead of pathnames
  2009-05-06 16:35 ` Bug#527300: git-log branchname <TAB> suggests refs instead of pathnames Clint Adams
@ 2009-05-06 16:49   ` martin f krafft
  0 siblings, 0 replies; 2+ messages in thread
From: martin f krafft @ 2009-05-06 16:49 UTC (permalink / raw)
  To: 527300, zsh-workers

[-- Attachment #1: Type: text/plain, Size: 1036 bytes --]

also sprach Clint Adams <schizo@debian.org> [2009.05.06.1835 +0200]:
> 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
>  }
> 

Yes.

-- 
 .''`.   martin f. krafft <madduck@d.o>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-06 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20090506161550.GA23943@piper.oerlikon.madduck.net>
2009-05-06 16:35 ` Bug#527300: git-log branchname <TAB> suggests refs instead of pathnames Clint Adams
2009-05-06 16:49   ` martin f krafft

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).