dotfiles/.config/git/config

145 lines
2.6 KiB
Plaintext

[user]
name = ObserverOfTime
email = chronobserver@disroot.org
signingkey = 8A2DEA1DBAEBCA9E
[core]
autocrlf = false
whitespace = cr-at-eol
editor = ${EDITOR:-nvim}
[extensions]
objectFormat = sha256
[init]
defaultBranch = master
[advice]
detachedHead = false
[credential]
helper = store
[commit]
gpgSign = true
status = true
[pull]
ff = only
[status]
submoduleSummary = 1
[tar "tar.gz"]
command = gzip -c -f -n
[tar "tgz"]
command = gzip -c -f -n
[tar "tar.bz2"]
command = bzip2 -c -f
[tar "tar.xz"]
command = xz -c -z -
[tar "tar.zst"]
command = zstd -c -z -q -
[tar "tar.lz"]
command = lzip -c -f
[tar "tar.lz4"]
command = lz4 -q
[pager]
diff = ${PAGER:-nvimpager}
show = ${PAGER:-nvimpager}
[color "diff"]
meta = yellow
[diff]
wsErrorHighlight = all
mnemonicPrefix = true
[diff "hex"]
textconv = hexdump -v -C
[diff "pdf"]
textconv = pdfinfo
[difftool]
prompt = false
[difftool "nvim"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
[difftool "meld"]
cmd = meld \"$LOCAL\" \"$REMOTE\"
[difftool "imgdiff"]
cmd = compare \"$LOCAL\" \"$REMOTE\" png:- | \
montage -geometry 400x -font \
Liberation-Sans -label l/%f \"$LOCAL\" \
-label diff - -label r/%f \"$REMOTE\" x:
[merge]
tool = fugitive
[mergetool]
keepBackup = false
[mergetool "fugitive"]
cmd = nvim -f +Gvdiffsplit\\! \"$MERGED\"
[mergetool "meld"]
cmd = meld \"$LOCAL\" \"$BASE\" \"$REMOTE\" -o \"$MERGED\"
[pretty]
log = format:%h %s%d [%cn] (%ad)
color = format:%C(cyan)%h %Creset%s%C(white)%d %C(yellow)[%an] %Cred(%ad)
[grep]
lineNumber = true
patternType = perl
fallbackToNoIndex = true
[alias]
last = log -1 HEAD
hist = log --date=short --graph --pretty=log
ls = log --date=short --graph --pretty=color --decorate
rev = log --decorate --reverse --no-merges --stat @{1}..
amend = commit --amend -uno -a
wdiff = diff --word-diff
cdiff = diff --word-diff-regex=. --color-words
conflicts = diff --name-only --diff-filter=U
root = rev-parse --show-toplevel
shallow = clone --single-branch --depth=1
compare = !git log $1...$2 --format=%m\\ %h\\ %s --left-right
repush = !git commit --amend -a --no-edit && git push --force
[filter "lfs"]
required = true
process = git-lfs filter-process
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[url "git@github.com:"]
insteadOf = http://github.com/
insteadOf = @gh:
[url "git@gitlab.com:"]
insteadOf = http://gitlab.com/
insteadOf = @gl:
[url "git@git.disroot.org:"]
insteadOf = http://git.disroot.org/
insteadOf = @disroot:
[url "aur@aur.archlinux.org:"]
insteadOf = https://aur.archlinux.org/
insteadOf = http://aur.archlinux.org/
insteadOf = @aur:
# vim:noet:sw=4:ts=4: