From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27236 invoked by alias); 15 Sep 2011 13:01:31 -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: 16364 Received: (qmail 15938 invoked from network); 15 Sep 2011 13:01:29 -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,HTML_MESSAGE,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.216.171 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:from:date:message-id:subject:to :cc:content-type; bh=c/iebTIVoV6BZQRBr4EEHUoQV4w+gcm7s9Qufq0Jf6U=; b=nVxaZ8eDiF5olOrN2blPZY1rDbcKRxYpD55KILd6S2FUAhR2e1QjTgQvKRJByR594h vE7lUGRy7Q2tyVciscAQtAdU79cVGIcsDGx3muihFbzOZZMQ/vLsCP95Yh8Rigob/OUA Vfbc5gELyB/JhJlu2t6dHkxzoe4Z/216mrPCc= MIME-Version: 1.0 In-Reply-To: <87ty8eqa27.fsf@ft.bewatermyfriend.org> References: <20110915074139.GA25204@miek.nl> <87ty8eqa27.fsf@ft.bewatermyfriend.org> From: Julien Nicoulaud Date: Thu, 15 Sep 2011 15:01:04 +0200 Message-ID: Subject: Re: vcs_info To: Frank Terbeck Cc: Zsh Users Content-Type: multipart/alternative; boundary=0016364eedec52fa0504acfa7948 --0016364eedec52fa0504acfa7948 Content-Type: text/plain; charset=ISO-8859-1 2011/9/15 Frank Terbeck > Julien Nicoulaud wrote: > > It seems by default Git repos have precedence over Hg repos. You can > force > > the order this way: > > > > zstyle ':vcs_info:*' enable hg bzr svn git > > > > > > I works fine for me (full setup here: > > https://gitorious.org/prso/dotfiles/blobs/master/zsh/conf.d/07_Prompt.sh > ). > > > > May be it would be better if vcs_info automatically picked the inner repo > ? > > This is not possible. > > The detections are run sequentially and not in parallel. And with git > for example, you just ask whether you're in a git-working-directory and > git tells you - you don't traverse the directory tree yourself. So there > is no simple way to do this. > Maybe we could add a disable-repo-patterns style, matching the repo root directory instead of the working directory ? vcs_info is able to use the relative path in the repo in formats (%S), so one would think it "knows" about the repo root directory ? > > I'm also really not a big fan of ~ in git. Because, you probably don't > track everything and use a lot of ignores. And then "git clean -xdf" is > the new "rm -Rf /"... > Actually, I have a ~/.gitignore with *. When I want to add a file, I just force it. I have been using this for years, not accident so far... > Regards, Frank > --0016364eedec52fa0504acfa7948--