110 lines
2.8 KiB
Plaintext
110 lines
2.8 KiB
Plaintext
[alias]
|
|
st = status
|
|
co = checkout
|
|
fx = commit --fixup=HEAD
|
|
ci = commit -v
|
|
cm = commit -m
|
|
ri = rebase -i --autosquash
|
|
wc = whatchanged
|
|
ass = add
|
|
amend = commit --amend -v
|
|
full = show --format=fuller
|
|
noed = commit --amend --no-edit
|
|
tr = log --graph --date-order --date=short --pretty=format:'%C(cyan)%h %C(blue)%ar%C(auto)%d %C(yellow)%s%+b %C(black)%ae'
|
|
fz = !sha=$( git -c color.ui=auto log --oneline -n 1000 | fzf +s --no-multi --prompt 'Fixup> ' ) && git commit --fixup "${sha%% *}"
|
|
fr = !sha=$( git -c color.ui=auto log --oneline -n 1000 | fzf +s --no-multi --prompt 'Revert> ' ) && git revert "${sha%% *}"
|
|
wd = "!f() { git --paginate diff --dirstat=cumulative,files,0 ${1:-HEAD} | awk '{print $2}' | cut -d / -f1-${2:-4} | sort | uniq; }; f"
|
|
|
|
[http]
|
|
sslVerify = true
|
|
|
|
[core]
|
|
autocrlf = input
|
|
whitespace = warn
|
|
excludesfile = /home/corpse/.config/git/gitignore
|
|
pager = "{ \
|
|
COLUMNS=$(tput cols); \
|
|
if [ $COLUMNS -ge 80 ] && [ -z $FZF_PREVIEW_COLUMNS ]; then \
|
|
delta --side-by-side -w $COLUMNS; \
|
|
elif [ $COLUMNS -ge 160 ] && [ ! -z $FZF_PREVIEW_COLUMNS ]; then \
|
|
delta --side-by-side -w $FZF_PREVIEW_COLUMNS; \
|
|
else \
|
|
delta; \
|
|
fi \
|
|
}"
|
|
|
|
[interactive]
|
|
diffFilter = delta --color-only
|
|
|
|
[delta]
|
|
side-by-side = false
|
|
line-numbers = true
|
|
syntax-theme = gruvbox-dark
|
|
hunk-header-style = omit
|
|
file-style = blue
|
|
file-decoration-style = blue ul ol
|
|
zero-style = dim syntax
|
|
minus-non-emph-style = dim red
|
|
minus-emph-style = bold red 52
|
|
minus-empty-line-marker-style = normal "#3f0001"
|
|
plus-non-emph-style = dim green
|
|
plus-emph-style = bold green 22
|
|
plus-empty-line-marker-style = normal "#002800"
|
|
whitespace-error-style = reverse white
|
|
file-added-label = [+]
|
|
file-copied-label = [C]
|
|
file-modified-label = [M]
|
|
file-removed-label = [-]
|
|
file-renamed-label = [R]
|
|
line-numbers-left-format = "{nm:>1} "
|
|
line-numbers-right-format = "{np:>1} "
|
|
line-numbers-minus-style = red italic
|
|
line-numbers-plus-style = green italic
|
|
|
|
[web]
|
|
browser = firefox
|
|
|
|
[credential]
|
|
helper = /usr/libexec/git-core/git-credential-libsecret
|
|
|
|
[merge]
|
|
tool = nvim
|
|
|
|
[mergetool "nvim"]
|
|
cmd = nvim -f -c \"Gdiffsplit!\" \"$MERGED\"
|
|
|
|
[mergetool]
|
|
prompt = false
|
|
|
|
[diff]
|
|
colorMoved = default
|
|
|
|
[commit]
|
|
gpgsign = true
|
|
verbose = true
|
|
|
|
[status]
|
|
branch = true
|
|
|
|
[color]
|
|
diff = auto
|
|
status = auto
|
|
branch = auto
|
|
ui = auto
|
|
|
|
[rerere]
|
|
enabled = true
|
|
|
|
[grep]
|
|
lineNumber = true
|
|
extendRegexp = true
|
|
|
|
[gpg]
|
|
program = gpg2
|
|
|
|
[log]
|
|
decorate = short
|
|
|
|
[include]
|
|
path = config.local
|