# Re: git-2.13.2: color.branch.local problem

2 messages from 2017-07-09 to 2017-07-09. Participants: Leo Razoumov, Junio C Hamano.
Thread: https://gitlist.dev/t/46336

## Leo Razoumov, 2017-07-09 15:57

Subject: Re: git-2.13.2: color.branch.local problem
Message-ID: <CADsUFkTgw5AGUafuBDEqRAUgzJeMZnQ1RL-_mz-QfiB=SV-xfA@mail.gmail.com>
URL: https://gitlist.dev/e/CADsUFkTgw5AGUafuBDEqRAUgzJeMZnQ1RL-_mz-QfiB%3DSV-xfA%40mail.gmail.com

```
On Sun, Jul 9, 2017 at 5:57 AM, Jeff King <peff@peff.net> wrote:
> On Sun, Jul 09, 2017 at 05:28:34AM -0400, Jeff King wrote:
>
>> On Sat, Jul 08, 2017 at 03:13:04PM -0400, Leo Razoumov wrote:
>>
>> > When I updated from git-2.10.2 to git-2.13.2 my 'color.branch.local'
>> > config setting gets ignored. Corresponding 'remote' or 'current'
>> > settings are honored and work as expected
>>
>> Looks like this is a regression from the switch to ref-filter in
>> v2.13.0; it bisects to 949af0684 (branch: use ref-filter printing APIs,
>> 2017-01-10). It looks like we don't ever use BRANCH_COLOR_LOCAL. The fix
>> is a little tricky because of another nearby issue. I'll send out a
>> patch in a moment.
>
> Here it is. This is intended for the maint branch.
>
>   [1/3]: branch: only perform HEAD check for local branches
>   [2/3]: branch: use BRANCH_COLOR_LOCAL in ref-filter format
>   [3/3]: branch: set remote color in ref-filter branch immediately
>
>  builtin/branch.c        | 15 +++++++++------
>  t/t3205-branch-color.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 53 insertions(+), 6 deletions(-)
>  create mode 100755 t/t3205-branch-color.sh
>
> -Peff

Jeff,
thanks for a quick fix!
--Leo

```

## Junio C Hamano, 2017-07-09 16:28

Subject: Re: git-2.13.2: color.branch.local problem
Message-ID: <xmqq37a5a82s.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqq37a5a82s.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <CADsUFkTgw5AGUafuBDEqRAUgzJeMZnQ1RL-_mz-QfiB=SV-xfA@mail.gmail.com>

```
Leo Razoumov <slonik.az@gmail.com> writes:

> On Sun, Jul 9, 2017 at 5:57 AM, Jeff King <peff@peff.net> wrote:
>> On Sun, Jul 09, 2017 at 05:28:34AM -0400, Jeff King wrote:
>>
>>> On Sat, Jul 08, 2017 at 03:13:04PM -0400, Leo Razoumov wrote:
>>>
>>> > When I updated from git-2.10.2 to git-2.13.2 my 'color.branch.local'
>>> > config setting gets ignored. Corresponding 'remote' or 'current'
>>> > settings are honored and work as expected
>>>
>>> Looks like this is a regression from the switch to ref-filter in
>>> v2.13.0; it bisects to 949af0684 (branch: use ref-filter printing APIs,
>>> 2017-01-10). It looks like we don't ever use BRANCH_COLOR_LOCAL. The fix
>>> is a little tricky because of another nearby issue. I'll send out a
>>> patch in a moment.
>>
>> Here it is. This is intended for the maint branch.
>>
>>   [1/3]: branch: only perform HEAD check for local branches
>>   [2/3]: branch: use BRANCH_COLOR_LOCAL in ref-filter format
>>   [3/3]: branch: set remote color in ref-filter branch immediately
>>
>>  builtin/branch.c        | 15 +++++++++------
>>  t/t3205-branch-color.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 53 insertions(+), 6 deletions(-)
>>  create mode 100755 t/t3205-branch-color.sh
>>
>> -Peff
>
> Jeff,
> thanks for a quick fix!
> --Leo

Thanks, both.  Will queue.

```
