From 3e623cd1ce687d0b36babc0ca405a1b27e9c4ad3 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 5 Jan 2025 16:38:24 +0100 Subject: [PATCH] Remove the automatic coloring of certain branch names We used to automatically color branches starting with "feature/", "bugfix/", or "hotfix/". For those who don't want this, it's a bit non-obvious to turn off, but it's actually pretty easy to configure manually for those who want this, so we just remove this default coloring. --- pkg/gui/presentation/branches.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pkg/gui/presentation/branches.go b/pkg/gui/presentation/branches.go index b75dfc95b..7f1e76ea5 100644 --- a/pkg/gui/presentation/branches.go +++ b/pkg/gui/presentation/branches.go @@ -131,16 +131,7 @@ func GetBranchTextStyle(name string) style.TextStyle { return value } - switch branchType { - case "feature": - return style.FgGreen - case "bugfix": - return style.FgYellow - case "hotfix": - return style.FgRed - default: - return theme.DefaultTextColor - } + return theme.DefaultTextColor } func BranchStatus(