nivertius-git-rc/.gitconfig
Paweł Płazieński a0e82614a2 Change date color in logs to magenta
This allows better visibility of local branches, as they were also
green, and could not be changed.
2019-12-31 08:45:52 +01:00

71 lines
1.7 KiB
INI

# put [user] (name, email) into ~/.gitlocal
[include]
path = .gitlocal
[color]
branch = auto
ui = auto
diff = auto
grep = auto
interactive = auto
showBranch = auto
status = auto
[blame]
date = iso-local
[log]
date = iso-local
[core]
excludesFile = ~/.gitignore_global
whitespace = trailing-space space-before-tab
[push]
default = current
[pull]
rebase = true
ff = only
[fetch]
prune = true
[alias]
st = status -s -b
branches = branch -a
tags = tag
stashes = stash list
remotes = remote -v
precommit = diff --diff-algorithm=minimal -w
interactive = add --patch
diffdir = difftool --dir-diff
graph = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(magenta)(%ad)%C(reset) %C(auto)%d%C(reset)'
last = log --walk-reflogs --date=relative --format=format:'%C(yellow)%h%C(reset) %C(white)%gd%C(reset) %gs %C(magenta)(%ar)%C(reset) %C(auto)%d%C(reset)'
where = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(magenta)(%ad)%C(reset) %C(auto)%d%C(reset)' --max-count=7
outgoing = log --graph --date-order --format=format:'%C(yellow)%h%C(reset) %s %C(cyan)%an%C(reset) %C(magenta)(%ad)%C(reset) %C(auto)%d%C(reset)' @{u}..HEAD
[diff]
compactionHeuristic = true
indentHeuristic = true
algorithm = histogram
renameLimit = 2000
mnemonicPrefix = true
colorMoved = plain
[difftool]
prompt = false
[gc]
autoDetach = false
[stash]
showPatch = true
[rebase]
autostash = true
autosquash = true
abbreviateCommands = true
[commit]
verbose = true
[merge]
ff = only
[mergetool]
keepBackup = false
[color "diff"]
meta = cyan bold
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse