zsh-users
 help / color / mirror / code / Atom feed
From: Piotr Kalinowski <pitkali@gmail.com>
To: zsh-users@zsh.org
Subject: Git completion - trying to improve speed
Date: Tue, 29 Jun 2010 11:50:43 +0200	[thread overview]
Message-ID: <AANLkTikWWvlUxxBfS5z5Ko_HHN00yd-dB91bbwkUAzr7@mail.gmail.com> (raw)

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

Hi,

I'm working on quite a large repository, and found git checkout completion
to be veeery slow. I've found patch on google that does improve situation
dramatically when you supply some prefix, see:
http://www.zsh.org/mla/workers/2008/msg01535.html. I've applied it to
git-version of git completion. However, I've got weird side effect.

Let user use 'git checkout test-<TAB>', wanting to complete something like
local branch test-feature1 or test-feature2. However:

- First completion is immediately inserted with menu displayed despite the
shell being configured otherwise (inserted in full, not just common prefix).

- The first completion is something like origin/test-feature1 instead of a
local branch.

I'm not much of a shell guru so I thought I'd ask if someone more into the
subject had any ideas what's going on, before I start to reverse-engineer
_git script ;)

Regards,
Piotr Kalinowski

-- 
Intelligence is like a river: the deeper it is, the less noise it makes

             reply	other threads:[~2010-06-29  9:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29  9:50 Piotr Kalinowski [this message]
2010-06-29 16:29 ` Benjamin R. Haskell

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=AANLkTikWWvlUxxBfS5z5Ko_HHN00yd-dB91bbwkUAzr7@mail.gmail.com \
    --to=pitkali@gmail.com \
    --cc=zsh-users@zsh.org \
    /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).