Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
- X-seq: zsh-workers 41524
- From: "Tom M." <boojum@xxxxxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: Zsh git filename completion with “--git-dir=… --work-tree=…”: not a git repository
- Date: Thu, 10 Aug 2017 22:59:56 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stercus-accidit.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3Vu7Z0WrgqzVqFYK87gH7xZVqlR+Pf1+KOEI7Lk9dFU=; b=NtdAyoy5nf4OydNish7scu7rG+/X6kf6Yv19RVWCJo59bxFoq0Teel5hRpw85bXSOl wweIXVC7ZA/au0FKFvuj3l0irHWLmr+rJhoW81YCzGpTzHKnfbAIu0QCHdOb/J983iOH uJrVX83ZMdSE8zW7eAfWR0vHXbXI0foJnG39w=
- In-reply-to: <1502401291.1328986.1069732648.63580361@webmail.messagingengine.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CACfAdfZ8xpPTZm2bKvYFoeUWgWDbYHwGRCU8+mLvkAV5YrOnig@mail.gmail.com> <CACfAdfa3-KTa6UJAEhkkjjVcxqa_8JdJweRE6ukTLmnAsj+8CA@mail.gmail.com> <1502385256.1253004.1069475528.211EB65F@webmail.messagingengine.com> <CACfAdfbiQDH1M32QGxZg21G3xqVFcq5JB+ZSaYbGd5-czNgLbg@mail.gmail.com> <1502401291.1328986.1069732648.63580361@webmail.messagingengine.com>
On 10 August 2017 at 22:41, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Try moving --git-dir and --work-tree to between 'git' and 'add'.
>
% git --git-dir=$HOME/.dotfiles --work-tree=$HOME/ add -f back [Tab]
% git --git-dir=$HOME/.dotfiles --work-tree=$HOME/ add -f backup
It works! Albeit completion is very, very slow - only for this particular
use-case. I'm assuming that this is due to large number of files in $home?
Or can it be a bit speedier?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author