[PATCH v10 19/20] branch: use ref-filter printing APIs

2017-01-10 Thread Karthik Nayak
From: Karthik Nayak Port branch.c to use ref-filter APIs for printing. This clears out most of the code used in branch.c for printing and replaces them with calls made to the ref-filter library. Introduce build_format() which gets the format required for printing of refs. Make amendments to prin

Re: [PATCH v10 19/20] branch: use ref-filter printing APIs

2017-01-11 Thread Jacob Keller
On Tue, Jan 10, 2017 at 12:49 AM, Karthik Nayak wrote: > diff --git a/builtin/branch.c b/builtin/branch.c > index 34cd61cd9..f293ee5b0 100644 > --- a/builtin/branch.c > +++ b/builtin/branch.c > @@ -37,11 +37,11 @@ static unsigned char head_sha1[20]; > static int branch_use_color = -1; > static c

Re: [PATCH v10 19/20] branch: use ref-filter printing APIs

2017-01-14 Thread Karthik Nayak
Hello, On Thu, Jan 12, 2017 at 5:17 AM, Jacob Keller wrote: > On Tue, Jan 10, 2017 at 12:49 AM, Karthik Nayak wrote: >> diff --git a/builtin/branch.c b/builtin/branch.c >> index 34cd61cd9..f293ee5b0 100644 >> --- a/builtin/branch.c >> +++ b/builtin/branch.c >> @@ -37,11 +37,11 @@ static unsigned

Re: [PATCH v10 19/20] branch: use ref-filter printing APIs

2017-01-14 Thread Jacob Keller
On Sat, Jan 14, 2017 at 2:01 AM, Karthik Nayak wrote: > Hello, > > On Thu, Jan 12, 2017 at 5:17 AM, Jacob Keller wrote: >> On Tue, Jan 10, 2017 at 12:49 AM, Karthik Nayak >> wrote: >>> diff --git a/builtin/branch.c b/builtin/branch.c >>> index 34cd61cd9..f293ee5b0 100644 >>> --- a/builtin/branc