Re: [PATCH v2] branch: colour upstream branches

2013-04-14 Thread Felipe Contreras
On Sun, Apr 14, 2013 at 8:52 PM, Junio C Hamano wrote: > Jeff King writes: > >> On Sun, Apr 14, 2013 at 06:38:27PM -0500, Felipe Contreras wrote: >> >>> +if (want_color(branch_use_color)) >>> +snprintf(fancy, sizeof(fancy), "%s%s%s", >>> +

Re: [PATCH v2] branch: colour upstream branches

2013-04-14 Thread Junio C Hamano
Jeff King writes: > On Sun, Apr 14, 2013 at 06:38:27PM -0500, Felipe Contreras wrote: > >> +if (want_color(branch_use_color)) >> +snprintf(fancy, sizeof(fancy), "%s%s%s", >> +branch_get_color(BRANCH_COLOR_UPSTREAM), >> +

Re: [PATCH v2] branch: colour upstream branches

2013-04-14 Thread Jeff King
On Sun, Apr 14, 2013 at 06:38:27PM -0500, Felipe Contreras wrote: > + if (want_color(branch_use_color)) > + snprintf(fancy, sizeof(fancy), "%s%s%s", > + branch_get_color(BRANCH_COLOR_UPSTREAM), > +

[PATCH v2] branch: colour upstream branches

2013-04-14 Thread Felipe Contreras
Otherwise when using 'git branch -vv' it's hard to see them among so much output. Signed-off-by: Felipe Contreras --- Documentation/config.txt | 3 ++- builtin/branch.c | 35 +++ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/Documentatio