]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
gitconfig: Add diff color settings.
authorSimon Ruderich <simon@ruderich.org>
Sat, 11 Aug 2012 02:59:03 +0000 (04:59 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 11 Aug 2012 02:59:03 +0000 (04:59 +0200)
Similar to my `colordiff` setup.

gitconfig.m4

index 91e1f3d3e265d164b04e14bba6b64c74f72509b1..2d70efbb0fedd610cb171c96c71bfead3c80e489 100644 (file)
@@ -26,6 +26,20 @@ include(../lib.m4)
 [color]
        ui = auto
 
+[color "diff"]
+       # Meta information.
+       meta = yellow bold
+       # Hunk header.
+       frag = magenta bold
+       # Function in hunk header.
+       function = magenta bold
+       # Removed lines.
+       old = red bold
+       # Added lines.
+       new = green bold
+       # Commit headers.
+       commit = cyan
+
 [core]
        editor = vim
        # Can't use ~/ because of older git versions.