zsh-workers
 help / color / mirror / code / Atom feed
* Git completion hanging on "git add -f"
@ 2011-01-30 11:24 Julien Nicoulaud
  2011-01-30 11:46 ` Frank Terbeck
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Nicoulaud @ 2011-01-30 11:24 UTC (permalink / raw)
  To: zsh-workers

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

Hi all,

I have my whole /home versionned in a git repository, with a .gitignore at
the root containing '*'. This allows me to put under version control some
selected dotfiles.
If I do a "git add -f <TAB>", the completion totally hangs, here is the
output of zprof: http://paste2.org/p/1219089 (I did a <CTRL>-<C> after a
while).
It seems that the completion recurses under the whole repository, instead of
just displaying the first level files and directories.

Regards,
Julien

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

* Re: Git completion hanging on "git add -f"
  2011-01-30 11:24 Git completion hanging on "git add -f" Julien Nicoulaud
@ 2011-01-30 11:46 ` Frank Terbeck
  2011-01-30 14:03   ` Julien Nicoulaud
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Terbeck @ 2011-01-30 11:46 UTC (permalink / raw)
  To: zsh-workers

Julien Nicoulaud wrote:
[...]
> It seems that the completion recurses under the whole repository, instead of
> just displaying the first level files and directories.

Did you try if Nikolai's updated _git from
<http://www.zsh.org/mla/workers/2011/msg00088.html> improves the
situation?

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


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

* Re: Git completion hanging on "git add -f"
  2011-01-30 11:46 ` Frank Terbeck
@ 2011-01-30 14:03   ` Julien Nicoulaud
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Nicoulaud @ 2011-01-30 14:03 UTC (permalink / raw)
  To: Frank Terbeck; +Cc: zsh-workers

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

Yes, I tried it but it's the same (same zprof output too).

I tried to unplug the completer provided by _git for this context with:
zstyle ':completion:*:*:git:ignored-other-files' _path_files
but there must be something I missed with zstyle syntax, because it does not
work (the part that matters is here:
https://github.com/now/zsh/blob/git/Completion/Unix/Command/_git#L59).

2011/1/30 Frank Terbeck <ft@bewatermyfriend.org>

> Julien Nicoulaud wrote:
> [...]
> > It seems that the completion recurses under the whole repository, instead
> of
> > just displaying the first level files and directories.
>
> Did you try if Nikolai's updated _git from
> <http://www.zsh.org/mla/workers/2011/msg00088.html> improves the
> situation?
>
> Regards, Frank
>
> --
> In protocol design, perfection has been reached not when there is
> nothing left to add, but when there is nothing left to take away.
>                                                  -- RFC 1925
>

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

end of thread, other threads:[~2011-01-30 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-30 11:24 Git completion hanging on "git add -f" Julien Nicoulaud
2011-01-30 11:46 ` Frank Terbeck
2011-01-30 14:03   ` Julien Nicoulaud

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