[user]
name = Fairyin
email = fairyin@126.com
[core]
abbrev = 8
autocrlf = input
eol = lf
[push]
default = simple
[i18n]
commitEncoding = utf-8
logOutputEncoding = utf-8
[color]
branch = auto
diff = auto
grep = auto
interactive = auto
pager = true
showbranch = auto
status = auto
ui = auto
[color "branch"]
local = yellow normal
current = green normal ul
remote = black bold
[alias]
aci = commit --amend
acis = commit -veS --amend
addall = "!\'git\' add $(\'git\' status | \'awk\' \'\"modified:\"==$2{print $3}\')"
br = branch
ci = commit -ve
cis = commit -veS
co = checkout
diffc = diff --cached
eaci = "!EDITOR=\'emacs\' \'git\' aci"
eacis = "!EDITOR=\'emacs\' \'git\' acis"
eci = "!EDITOR=\'emacs\' \'git\' ci"
ecis = "!EDITOR=\'emacs\' \'git\' cis"
glog = log --pretty=\'%C(yellow normal)%h%Creset %C(red normal ul)%G?%Creset %C(white normal)%s%Creset %C(blue normal)[%an]%Creset %C(black normal bold)%ar%Creset\' --graph
ls = "!cd \"${GIT_PREFIX}\"; \
maxlen=$( \
\'git\' ls-tree --name-only HEAD . | while read file; do \
\'ls\' -DF \"$file\"; \
done | \'wc\' -L \
); \
\'git\' ls-tree --name-only HEAD . | while read file; do \
[ -e \"$file\" ] || continue; \
len=$( \'ls\' -dF \"$file\" | \'wc\' -c ); \
clen=$( \'ls\' -dF --color \"$file\" | \'wc\' -c ); \
[ \'s\' == \"s$(\'git\' log -1 --pretty=\'%G?\' \"$file\")\" ] && tpl=\' \' || tpl=\'%C(red normal ul)%G?%Creset\'; \
\'printf\' \"%-$( \'expr\' $maxlen + $clen - $len )s\" \"$( \'ls\' -dF --color \"$file\" )\"; \
\'git\' log -1 --pretty=\" %C(yellow normal)%h%Creset $tpl %C(white normal)%s%Creset %C(blue normal)[%an]%Creset %C(black normal bold)%ar%Creset\" \"$file\" | \'head\'; \
done"
naci = "!EDITOR=\'nano\' \'git\' aci"
nacis = "!EDITOR=\'nano\' \'git\' acis"
nci = "!EDITOR=\'nano\' \'git\' ci"
ncis = "!EDITOR=\'nano\' \'git\' cis"
st = status
vaci = "!EDITOR=\'vim\' \'git\' aci"
vacis = "!EDITOR=\'vim\' \'git\' acis"
vci = "!EDITOR=\'vim\' \'git\' ci"
vcis = "!EDITOR=\'vim\' \'git\' cis"
# vi: ft=gitconfig ff=unix noet tw=198486