zsh-users
 help / color / mirror / code / Atom feed
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
To: Frank Terbeck <ft@bewatermyfriend.org>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: vcs_info
Date: Thu, 15 Sep 2011 15:01:04 +0200	[thread overview]
Message-ID: <CA+mcLN4kZFwL0Gm7ibDo0k7EoQwLa3gp3UBR-F2bSvNUsJLZ7A@mail.gmail.com> (raw)
In-Reply-To: <87ty8eqa27.fsf@ft.bewatermyfriend.org>

[-- Attachment #1: Type: text/plain, Size: 1321 bytes --]

2011/9/15 Frank Terbeck <ft@bewatermyfriend.org>

> 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
>

      reply	other threads:[~2011-09-15 13:01 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         ` vcs_info Quabug.Yuan
2011-09-15 12:12   ` vcs_info Frank Terbeck
2011-09-15 13:01     ` Julien Nicoulaud [this message]

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+mcLN4kZFwL0Gm7ibDo0k7EoQwLa3gp3UBR-F2bSvNUsJLZ7A@mail.gmail.com \
    --to=julien.nicoulaud@gmail.com \
    --cc=ft@bewatermyfriend.org \
    --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).