From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12610 invoked by alias); 15 Sep 2011 12:31:44 -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: 16363 Received: (qmail 970 invoked from network); 15 Sep 2011 12:31:41 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Zsh Users Subject: Re: vcs_info In-Reply-To: (Julien Nicoulaud's message of "Thu, 15 Sep 2011 10:48:13 +0200") References: <20110915074139.GA25204@miek.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Date: Thu, 15 Sep 2011 14:12:00 +0200 Message-ID: <87ty8eqa27.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Df-Sender: NDMwNDQ0 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. 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 /"... Regards, Frank