From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14409 invoked by alias); 15 Sep 2011 12:30:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16362 Received: (qmail 12374 invoked from network); 15 Sep 2011 12:30:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.161.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HnXNV2WGGTY58NnTmjyyThCYwlK/FAfPi8HfBZcGzxo=; b=P893xF8HvUgxo5Ct+atGb9fkVUicliQXqiecanpifFrJ08gCy8S3mkvWrd2q8jQX1h E6TmOOzRHyQsW649yaZmC9vb+6QPnHXkCMoCYXKydbgyzwQe0PSBDQHXJ2OADWh1/7ql ki+PsGWww8HBkzCBMMjvlbGq4X3Cfp0ScMH74= MIME-Version: 1.0 In-Reply-To: <4E71C7AE.8030908@necoro.eu> References: <20110915074139.GA25204@miek.nl> <20110915090328.GA24448@miek.nl> <4E71C7AE.8030908@necoro.eu> Date: Thu, 15 Sep 2011 20:30:30 +0800 Message-ID: Subject: Re: vcs_info From: "Quabug.Yuan" To: =?UTF-8?Q?Ren=C3=A9_Neumann?= Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Sep 15, 2011 at 5:38 PM, Ren=C3=A9 Neumann 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 re= po >> without ignoring the nested repositories ? There is a "disable-patterns" >> style, but it matches the current working directory, and not the repo ro= ot >> 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=3D'GIT_DIR=3D$HOME/.config.git/ git --work-tree=3D$HOME' > > (This also removes the nested-repository-problem of yours :)) > > - Ren=C3=A9 > It's a nice trick that I always wonder. Thanks. - quabug