From 9ff5d6cd1e0ba293ff02125998140a307fc16464 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 12 Jan 2025 09:53:54 +1100 Subject: [PATCH] Update comments --- pkg/gui/gui.go | 2 +- pkg/gui/presentation/branches.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index a3b03735c0d..51a1bf2c77d 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -459,7 +459,7 @@ func (gui *Gui) onUserConfigLoaded() error { if len(userConfig.Gui.BranchColorPatterns) > 0 { presentation.SetCustomBranches(userConfig.Gui.BranchColorPatterns, true) } else { - // The alternative is to match on branch types with the branchColors config which will be deprecated in the future + // Fall back to the deprecated branchColors config presentation.SetCustomBranches(userConfig.Gui.BranchColors, false) } diff --git a/pkg/gui/presentation/branches.go b/pkg/gui/presentation/branches.go index 3fd14458ec3..dfb363bc700 100644 --- a/pkg/gui/presentation/branches.go +++ b/pkg/gui/presentation/branches.go @@ -21,7 +21,7 @@ import ( type colorMatcher struct { patterns map[string]style.TextStyle - isRegex bool // NOTE: this value is needed only until branchColors is deprecated and only regex color patterns are used + isRegex bool // NOTE: this value is needed only until the deprecated branchColors config is removed and only regex color patterns are used } var colorPatterns *colorMatcher