zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#603503: numerous infelicities in git completion
       [not found] <20101113170009.GA25537@gnu.kitenet.net>
@ 2010-11-14 19:43 ` Clint Adams
  2010-11-14 19:47   ` Joey Hess
  2010-11-14 19:48   ` Nikolai Weibull
  0 siblings, 2 replies; 5+ messages in thread
From: Clint Adams @ 2010-11-14 19:43 UTC (permalink / raw)
  To: zsh-workers; +Cc: Joey Hess, 603503

On Sat, Nov 13, 2010 at 01:00:09PM -0400, Joey Hess wrote:
> 1. git log completes only branches, but not filenames. I try to do
>    `git log Foo/Bar<tab>` all the time.
> 2. git diff ditto
> 3. git anne<tab> doesn't complete git annex, despite git-annex
>    being in path and that being a valid subcommand here.
> 4. git annex add <tab> doesn't complete anything. I think that if zsh is 
>    unfamiliar with the parameters taken by a subcommand, it should
>    complete filenames.

I'm going to punt on #1 and #2 due to lack of time.  Until git gets
a convenient way of outputting all the commands and descriptions
I think we're stuck hardcoding them.  I'm adding annex and submodule
(it was claimed that someone is working on submodule completion now).
I don't know where annex belongs.  Hopefully someone will move it
and write completion for it.

As for #4 I agree.

Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.131
diff -u -r1.131 _git
--- Completion/Unix/Command/_git	24 Jul 2010 19:01:23 -0000	1.131
+++ Completion/Unix/Command/_git	14 Nov 2010 19:22:40 -0000
@@ -205,6 +205,7 @@
     'stage:add file contents to the staging area'
     'stash:stash away changes to the working tree'
     'status:show working-tree'\''s status'
+    'submodule:initialize or update or inspect submodules'
     'tag:create tag object signed with GPG'
     'verify-tag:check GPG signature of a tag')
 
@@ -290,7 +291,8 @@
     'cvsimport:import a CVS "repository" into a git repository'
     'svnimport:import SVN repository into git'
     'quiltimport:apply a quilt patchset'
-    'svn:bidirectional operation between a single Subversion branch and git')
+    'svn:bidirectional operation between a single Subversion branch and git'
+    'annex:manage files without tracking content')
 
   local -a ancillary_commands
   ancillary_commands=(
@@ -4493,7 +4495,11 @@
         __git_aliases_and_commands
       else
         curcontext="${curcontext%:*:*}:git-$words[1]:"
-        _call_function ret _git-$words[1]
+	if (( $+functions[_git-$words[1]] )); then
+          _call_function ret _git-$words[1]
+	else
+	  _files
+	fi
         return ret
       fi
       ;;


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

* Re: Bug#603503: numerous infelicities in git completion
  2010-11-14 19:43 ` Bug#603503: numerous infelicities in git completion Clint Adams
@ 2010-11-14 19:47   ` Joey Hess
  2010-11-14 20:24     ` Holger Weiß
  2010-11-14 19:48   ` Nikolai Weibull
  1 sibling, 1 reply; 5+ messages in thread
From: Joey Hess @ 2010-11-14 19:47 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers, 603503

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

Clint Adams wrote:
> On Sat, Nov 13, 2010 at 01:00:09PM -0400, Joey Hess wrote:
> > 1. git log completes only branches, but not filenames. I try to do
> >    `git log Foo/Bar<tab>` all the time.
> > 2. git diff ditto
> > 3. git anne<tab> doesn't complete git annex, despite git-annex
> >    being in path and that being a valid subcommand here.
> > 4. git annex add <tab> doesn't complete anything. I think that if zsh is 
> >    unfamiliar with the parameters taken by a subcommand, it should
> >    complete filenames.
> 
> I'm going to punt on #1 and #2 due to lack of time.

I seem to have been wrong about #2 btw. #1 is highly annoying.

-- 
see shy jo

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

* Re: Bug#603503: numerous infelicities in git completion
  2010-11-14 19:43 ` Bug#603503: numerous infelicities in git completion Clint Adams
  2010-11-14 19:47   ` Joey Hess
@ 2010-11-14 19:48   ` Nikolai Weibull
  2010-11-14 20:37     ` Nikolai Weibull
  1 sibling, 1 reply; 5+ messages in thread
From: Nikolai Weibull @ 2010-11-14 19:48 UTC (permalink / raw)
  To: Clint Adams; +Cc: zsh-workers, Joey Hess, 603503

On Sunday, November 14, 2010, Clint Adams <clint@zsh.org> wrote:
> On Sat, Nov 13, 2010 at 01:00:09PM -0400, Joey Hess wrote:
>> 1. git log completes only branches, but not filenames. I try to do
>>    `git log Foo/Bar<tab>` all the time.
>> 2. git diff ditto

Why don’t people file bugs upstream? I have no desire of checking
bugs.debian.org for bugs.

> I'm going to punt on #1 and #2 due to lack of time.

I’m updating everything. For some reason I decided to send out all my
patches en masse, but I guess I’ll send them out in smaller batches,
as things are taking longer than I had hoped. I’m actually completing
the git diff completion right now.


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

* Re: Bug#603503: numerous infelicities in git completion
  2010-11-14 19:47   ` Joey Hess
@ 2010-11-14 20:24     ` Holger Weiß
  0 siblings, 0 replies; 5+ messages in thread
From: Holger Weiß @ 2010-11-14 20:24 UTC (permalink / raw)
  To: Joey Hess; +Cc: Clint Adams, Zsh Workers, 603503

* Joey Hess <joeyh@debian.org> [2010-11-14 15:47]:
> Clint Adams wrote:
> > On Sat, Nov 13, 2010 at 01:00:09PM -0400, Joey Hess wrote:
> > > 1. git log completes only branches, but not filenames. I try to do
> > >    `git log Foo/Bar<tab>` all the time.
> > > 2. git diff ditto
> > > 3. git anne<tab> doesn't complete git annex, despite git-annex
> > >    being in path and that being a valid subcommand here.
> > > 4. git annex add <tab> doesn't complete anything. I think that if zsh is 
> > >    unfamiliar with the parameters taken by a subcommand, it should
> > >    complete filenames.
> > 
> > I'm going to punt on #1 and #2 due to lack of time.
> 
> I seem to have been wrong about #2 btw. #1 is highly annoying.

#1 has been fixed in CVS a while ago.  See:

	http://www.zsh.org/mla/workers/2010/msg00451.html

Holger


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

* Re: Bug#603503: numerous infelicities in git completion
  2010-11-14 19:48   ` Nikolai Weibull
@ 2010-11-14 20:37     ` Nikolai Weibull
  0 siblings, 0 replies; 5+ messages in thread
From: Nikolai Weibull @ 2010-11-14 20:37 UTC (permalink / raw)
  To: Nikolai Weibull; +Cc: Clint Adams, zsh-workers, Joey Hess, 603503

On Sunday, November 14, 2010, Nikolai Weibull <now@bitwi.se> wrote:
> On Sunday, November 14, 2010, Clint Adams <clint@zsh.org> wrote:
>> On Sat, Nov 13, 2010 at 01:00:09PM -0400, Joey Hess wrote:
>>> 1. git log completes only branches, but not filenames. I try to do
>>>    `git log Foo/Bar<tab>` all the time.
>>> 2. git diff ditto
>
> Why don’t people file bugs upstream? I have no desire of checking
> bugs.debian.org for bugs.

I didn’t mean for this to sound so harsh. And s/of/for/.


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

end of thread, other threads:[~2010-11-14 20:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20101113170009.GA25537@gnu.kitenet.net>
2010-11-14 19:43 ` Bug#603503: numerous infelicities in git completion Clint Adams
2010-11-14 19:47   ` Joey Hess
2010-11-14 20:24     ` Holger Weiß
2010-11-14 19:48   ` Nikolai Weibull
2010-11-14 20:37     ` Nikolai Weibull

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