diff options
author | Matt Cles <matthew@cles.dev> | 2022-01-28 21:23:57 -0800 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-01 18:55:45 +1100 |
commit | 4df76466542441bceb6ebbb21a0730c5ea97e620 (patch) | |
tree | 93c98d1e32b95d2facb66947d00739e6b35e15d5 /pkg/config | |
parent | c7c4a375a98130e746af021fd706e354cf989d1f (diff) |
Add configurable colors for branch prefixes
Branches can now be colored based on their prefix, if it matches
a user defined prefix in the config file. If no user defined
prefix matches, then it will fallback to the defaults: green for
'feature', yellow for 'bugfix', and red for 'hotfix'. All
remaining branches will be set to the default text color.
Diffstat (limited to 'pkg/config')
-rw-r--r-- | pkg/config/user_config.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index a9977bdf6..9d7781358 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -25,6 +25,7 @@ type RefresherConfig struct { type GuiConfig struct { AuthorColors map[string]string `yaml:"authorColors"` + BranchColors map[string]string `yaml:"branchColors"` ScrollHeight int `yaml:"scrollHeight"` ScrollPastBottom bool `yaml:"scrollPastBottom"` MouseEvents bool `yaml:"mouseEvents"` |