]> git.phdru.name Git - dotfiles.git/commitdiff
.gitconfig: better colors for light bg
authorOleg Broytman <phd@phdru.name>
Thu, 23 Oct 2014 14:33:19 +0000 (18:33 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 23 Oct 2014 14:33:19 +0000 (18:33 +0400)
.gitconfig

index 83f1bee08ceccdc61ab4232747a6539ff210b55f..3a8714224789be7bf96eba8ca9e85a78bc12f05f 100644 (file)
@@ -15,6 +15,8 @@
 [color]
        ui = auto
 
 [color]
        ui = auto
 
+# Adapted from http://shallowsky.com/blog/programming/gitcolors.html
+# and http://www.ansdb.com/649-git-colors-for-light-background
 [color "branch"]
 #      -- default --
 #      current = green
 [color "branch"]
 #      -- default --
 #      current = green
 #      remote = red
 #      -- light bg --
        current = blue
 #      remote = red
 #      -- light bg --
        current = blue
+       local = normal
+       plain = normal
        remote = magenta
        remote = magenta
+       upstream = normal
 [color "diff"]
 #      -- default --
 #      commit = yellow
 [color "diff"]
 #      -- default --
 #      commit = yellow
 #      whitespace = normal red
 #      -- light bg --
        commit = normal bold
 #      whitespace = normal red
 #      -- light bg --
        commit = normal bold
-       frag = green
+       frag = cyan
+       meta = bold
        new = blue
        old = magenta
        new = blue
        old = magenta
+       plain = normal
+       whitespace = normal red
 #[color "grep"]
 #      -- default --
 #      match = normal
 #[color "grep"]
 #      -- default --
 #      match = normal
+[color "decorate"]
+#      -- light bg --
+       HEAD = blue
+       tag = blue
 #[color "interactive"]
 #      -- default --
 #      error = normal
 #[color "interactive"]
 #      -- default --
 #      error = normal
@@ -58,6 +70,9 @@
 #      -- light bg --
        added = blue
        changed = blue
 #      -- light bg --
        added = blue
        changed = blue
+       header = normal
+       nobranch = red
+       untracked = red
        updated = magenta
 
 [core]
        updated = magenta
 
 [core]