summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorMatt Cles <matthew@cles.dev>2022-01-28 21:23:57 -0800
committerJesse Duffield <jessedduffield@gmail.com>2022-02-01 18:55:45 +1100
commit4df76466542441bceb6ebbb21a0730c5ea97e620 (patch)
tree93c98d1e32b95d2facb66947d00739e6b35e15d5 /docs
parentc7c4a375a98130e746af021fd706e354cf989d1f (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 'docs')
-rw-r--r--docs/Config.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md
index b83346610..ed6f6dfde 100644
--- a/docs/Config.md
+++ b/docs/Config.md
@@ -400,6 +400,16 @@ gui:
'*': '#0000ff'
```
+## Custom Branch Color
+
+You can customize the color of branches based on the branch prefix:
+
+```yaml
+gui:
+ branchColors:
+ 'docs': '#11aaff' # use a light blue for branches beginning with 'docs/'
+```
+
## Example Coloring
![border example](../../assets/colored-border-example.png)