zsh-users
 help / color / mirror / code / Atom feed
From: "Quabug.Yuan" <quabug@gmail.com>
To: "René Neumann" <lists@necoro.eu>
Cc: zsh-users@zsh.org
Subject: Re: vcs_info
Date: Thu, 15 Sep 2011 20:30:30 +0800	[thread overview]
Message-ID: <CA+JxBKQdu1Yotzxc+QN63qxY+bnUUuVAovtaDmExUJBvLfnNfA@mail.gmail.com> (raw)
In-Reply-To: <4E71C7AE.8030908@necoro.eu>

On Thu, Sep 15, 2011 at 5:38 PM, René Neumann <lists@necoro.eu> wrote:
> Am 15.09.2011 11:15, schrieb Julien Nicoulaud:
>> By the way, does anyone know a way to make vcs_info ignore this $HOME repo
>> without ignoring the nested repositories ? There is a "disable-patterns"
>> style, but it matches the current working directory, and not the repo root
>> directory...
>
> I have achieved this by simply using ".config.git" as the git-repository
> name for my $HOME. This makes sure, that under no circumstances I check
> something into the HOME-git where it does not belong.
>
> Then I used a simple alias:
>
> alias config='GIT_DIR=$HOME/.config.git/ git --work-tree=$HOME'
>
> (This also removes the nested-repository-problem of yours :))
>
> - René
>

It's a nice trick that I always wonder.
Thanks.

 - quabug


  reply	other threads:[~2011-09-15 12:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15  7:41 vcs_info Miek Gieben
2011-09-15  8:48 ` vcs_info Julien Nicoulaud
2011-09-15  9:03   ` vcs_info Miek Gieben
2011-09-15  9:15     ` vcs_info Julien Nicoulaud
2011-09-15  9:38       ` vcs_info René Neumann
2011-09-15 12:30         ` Quabug.Yuan [this message]
2011-09-15 12:12   ` vcs_info Frank Terbeck
2011-09-15 13:01     ` vcs_info Julien Nicoulaud

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=CA+JxBKQdu1Yotzxc+QN63qxY+bnUUuVAovtaDmExUJBvLfnNfA@mail.gmail.com \
    --to=quabug@gmail.com \
    --cc=lists@necoro.eu \
    --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).