Thread (12 messages) flat view 12 messages, 4 authors, 2016-06-15

Re: [PATCH] Add bare repository indicator for __git_ps1

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:46:16

Marius Storm-Olsen [off-list ref] wrote:
Junio C Hamano said the following on 21.02.2009 20:29:
quoted
Marius Storm-Olsen [off-list ref] writes:
quoted
Prefixes the branch name with "BARE:" if you're in a bare
repository.
quoted
There may be a different workflow where you would stay in a bare  
repository for an extended period of time and you would benefit
from such a reminder like this patch adds, but I do not think of
one.
Right, I have quite a few repos on my machine which are just bare, as I 
use them gather branches and push out again.  
(http://repo.or.cz/w/git/platforms.git is one of them) However, it's  
probably just me, since I could just as easily put them in a proper  
directory structure to indicate their bareness.

Anyways, I just thought it would fairly "low cost" to add, and nice to  
have.
Its not that low of a cost, its an extra fork+exec per prompt when in
a .git/ or a bare repository.  Neither is very common when compared
to a workdir, Junio's right about that.  But its YAFE.  ;)
Consider it, as Linus coined the term, a throw-away patch. I can easily 
put it in my .bashrc instead. :)
Like Junio, I'm not very compelled to include this patch.  I just
don't see enough to make including it worthwhile.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help