I was able to change color for old, new, and meta regions, but I can't find the option to change the color of @@ -1 +1, 2 @@ (in the picture) and the color of the red square at the end (in the picture).
old
new
meta
@@ -1 +1, 2 @@
Hunk header color option is called color.diff.frag.
color.diff.frag
Whitespace at the end is called color.diff.whitespace. Whitespace uses background color so you have to set both colors (thanks @IGRACH)
color.diff.whitespace
You can test it like this:
git -c color.diff.frag=yellow -c color.diff.whitespace='cyan cyan' diff
For completeness, the rest of options are:
Available colors: normal, black, red, green, yellow, blue, magenta, cyan, white and default
Hunk header color option is called
color.diff.frag.Whitespace at the end is called
color.diff.whitespace.Whitespace uses background color so you have to set both colors (thanks @IGRACH)
You can test it like this:
git -c color.diff.frag=yellow -c color.diff.whitespace='cyan cyan' diffFor completeness, the rest of options are:
Available colors: normal, black, red, green, yellow, blue, magenta, cyan, white and default