git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-2.13.2: color.branch.local problem
@ 2017-07-08 19:13 Leo Razoumov
  2017-07-09  9:28 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Razoumov @ 2017-07-08 19:13 UTC (permalink / raw)
  To: Git Mailing List

Hi Everyone,

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

Relevant parts of my config file is:
  [color "branch"]
    current=  reverse
    local  = red bold
    remote = green bold

I am on macosx-10.11.6 El Capitan. Git installation courtesy of homebrew.

Using command
$ git branch -a --color=always
I see current branch in reverse, remote branches in green, but local
branches in default color (black)

Any help is greatly appreciated.

Thanks,
--Leo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-2.13.2: color.branch.local problem
  2017-07-08 19:13 Leo Razoumov
@ 2017-07-09  9:28 ` Jeff King
  2017-07-09  9:57   ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2017-07-09  9:28 UTC (permalink / raw)
  To: Leo Razoumov; +Cc: Karthik Nayak, Git Mailing List

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.

-Peff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-2.13.2: color.branch.local problem
  2017-07-09  9:28 ` Jeff King
@ 2017-07-09  9:57   ` Jeff King
  0 siblings, 0 replies; 5+ messages in thread
From: Jeff King @ 2017-07-09  9:57 UTC (permalink / raw)
  To: Leo Razoumov; +Cc: Karthik Nayak, Git Mailing List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-2.13.2: color.branch.local problem
@ 2017-07-09 15:57 Leo Razoumov
  2017-07-09 16:28 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Razoumov @ 2017-07-09 15:57 UTC (permalink / raw)
  To: Jeff King; +Cc: Karthik Nayak, Git Mailing List

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git-2.13.2: color.branch.local problem
  2017-07-09 15:57 git-2.13.2: color.branch.local problem Leo Razoumov
@ 2017-07-09 16:28 ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2017-07-09 16:28 UTC (permalink / raw)
  To: Leo Razoumov; +Cc: Jeff King, Karthik Nayak, Git Mailing List

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-09 16:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-09 15:57 git-2.13.2: color.branch.local problem Leo Razoumov
2017-07-09 16:28 ` Junio C Hamano
  -- strict thread matches above, loose matches on Subject: below --
2017-07-08 19:13 Leo Razoumov
2017-07-09  9:28 ` Jeff King
2017-07-09  9:57   ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).