Re: [PATCH 2/2] pretty: support placeholders %C+ and %C-

2012-09-21 Thread Nguyen Thai Ngoc Duy
On Fri, Sep 21, 2012 at 12:47 AM, Junio C Hamano wrote: >>> +- '%C+': enable coloring on the following placeholders if supported >>> +- '%C-': disable coloring on the following placeholders >> >> OK, so typically you replace some format placeholder "%?" in your >> format string with "%C+%?%C-", be

Re: [PATCH 2/2] pretty: support placeholders %C+ and %C-

2012-09-20 Thread Junio C Hamano
Junio C Hamano writes: > Nguyễn Thái Ngọc Duy writes: > >> %C+ tells the next specifiers that color is preferred. %C- the >> opposite. So far only %H, %h and %d support coloring. >> >> Signed-off-by: Nguyễn Thái Ngọc Duy >> --- >> Documentation/pretty-formats.txt | 2 ++ >> pretty.c

Re: [PATCH 2/2] pretty: support placeholders %C+ and %C-

2012-09-20 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > %C+ tells the next specifiers that color is preferred. %C- the > opposite. So far only %H, %h and %d support coloring. > > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > Documentation/pretty-formats.txt | 2 ++ > pretty.c | 13 - >

[PATCH 2/2] pretty: support placeholders %C+ and %C-

2012-09-20 Thread Nguyễn Thái Ngọc Duy
%C+ tells the next specifiers that color is preferred. %C- the opposite. So far only %H, %h and %d support coloring. Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/pretty-formats.txt | 2 ++ pretty.c | 13 - 2 files changed, 14 insertions(+), 1 deletio