Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jan 11, 2025
1 parent 1c4b10a commit 9ff5d6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/gui/presentation/branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ff5d6c

Please sign in to comment.