From a26a899213ff74730b4d7cfef34d83fc8b2c72af Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Fri, 12 Sep 2025 16:43:40 +0200 Subject: [PATCH] git: Make all bold colors bright Make all bold colors (also) bright, since kitty does not render bold colors in their bright version, but I've gotten used to how this looks. For the graph I've gotten rid of the boldness and only switched to bright versions since I think it makes no sense to have different line weights for the branches (Although I apparently never noticed, so I can't say that this was misleading in practice). --- .config/git/config | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.config/git/config b/.config/git/config index 71e8ddf..8602219 100644 --- a/.config/git/config +++ b/.config/git/config @@ -52,6 +52,38 @@ sort = -committerdate [clone] filterSubmodules = yes +[color "diff"] + # Make all bold colors also bright. See diff_colors in git's diff.c + oldMoved = bold brightmagenta + oldMovedAlternative = bold brightblue + newMoved = bold brightcyan + newMovedAlternative = bold brightyellow + oldBold = bold brightred + newBold = bold brightgreen +[color "decorate"] + # Make all bold colors also bright. See decoration_colors in git's + # log-tree.c + branch = bold brightgreen + remoteBranch = bold brightred + tag = bold brightyellow + stash = bold brightmagenta + HEAD = bold brightcyan + grafted = bold brightblue +[color "grep"] + # Make all bold colors also bright. See GREP_OPT_INIT in git's grep.h + matchContext = bold brightred + matchSelected = bold brightred +[color "interactive"] + # Make all bold colors also bright. See init_add_i_state in git's + # add-interactive.c + help = bold brightred + prompt = bold brightblue + error = bold brightred +[color "remote"] + # Make all bold colors also bright. See keywords in git's sideband.c + warning = bold brightyellow + success = bold brightgreen + error = bold brightred [color "status"] added = 076 untracked = 014 @@ -102,6 +134,9 @@ singleKey = true [log] follow = true + # Use bright instead of bold colors. See column_colors_ansi in git's + # color.c used by graph.c + graphColors = red,green,yellow,blue,magenta,cyan,brightred,brightgreen,brightyellow,brightblue,brightmagenta,brightcyan [merge] conflictstyle = diff3 log = true