Re: [PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-17 Thread Simon Oosthoek
On 16/10/12 23:30, Junio C Hamano wrote: > Simon Oosthoek writes: > >> Hi >> >> Fixed the mistakes of the last one, and I'm now using the symbolic names >> "ok_color" and "bad_color". >> The test for headless state is now more direct, and I hope it is still >> correct. >> >> /Simon > > Will ap

Re: [PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-16 Thread Junio C Hamano
Junio C Hamano writes: > Simon Oosthoek writes: > >> Hi >> >> Fixed the mistakes of the last one, and I'm now using the symbolic names >> "ok_color" and "bad_color". >> The test for headless state is now more direct, and I hope it is still >> correct. >> >> /Simon > > Will apply with a bit mor

Re: [PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-16 Thread Junio C Hamano
Simon Oosthoek writes: > Hi > > Fixed the mistakes of the last one, and I'm now using the symbolic names > "ok_color" and "bad_color". > The test for headless state is now more direct, and I hope it is still > correct. > > /Simon Will apply with a bit more readable log message. I think it wou

[PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-16 Thread Simon Oosthoek
Hi Fixed the mistakes of the last one, and I'm now using the symbolic names "ok_color" and "bad_color". The test for headless state is now more direct, and I hope it is still correct. /Simon this patch is an additional patch to the previous series of two. It also corrects the missing S and so

Re: [PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-16 Thread Junio C Hamano
Simon Oosthoek writes: > this patch is an additional patch to the previous series of two. > @@ -325,35 +323,45 @@ __git_ps1 () > > local f="$w$i$s$u" > if [ $pcmode = yes ]; then > + if [ -n "${GIT_PS1_SHOWCOLORHINTS-}" ]; then >

[PATCH 3/3] Change colors to be based on git status -sb in color mode

2012-10-15 Thread Simon Oosthoek
Hi this patch is an additional patch to the previous series of two. It also corrects the missing S and some minor details. The main point of this one is changing the used colors to be more close to the color output of "git status -sb" Mainly, the branchname stays green until it loses a HEAD, in d