On Tue, 6 Aug 2013 21:05:54 +0530, Ramkumar Ramachandra <[email protected]> 
wrote:
> Pieter Praet wrote:
> > Maybe we could wrap something like:
> 
> Eh, this is rather extreme. [...]

I know... ;)

> [...] My approach is to educate users and
> empower them, not to decide what's dangerous for them; maybe print a
> diagnostic warning that can be turned off after the user has gone in
> to see it?

Yup, sounds like a good idea.

> We must also look into incorporating the repository state in the
> modeline.  My prompt looks like (available from contrib/ in git.git):
> 
>   artagnon|master<>*+:~/src/git$
> 
> I immediately know that my worktree is dirty (red asterisk), I have
> some staged changes (green plus), and that I've diverged from upstream
> (white <>). After a commit and push:
> 
>   artagnon|master=:~/src/git$
> 
> In sync with upstream; clean worktree and index.

That would indeed be very useful, but do keep in mind that the
'__git_ps1' stuff causes very noticeable delays in large repositories,
and the vc modeline stuff was recently disabled by default [1] due to
its performance impact.


Peace

-- 
Pieter

[1] commit a4cf02d1

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"magit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to