dotfiles/.config/git/config

190 lines
3.5 KiB
Plaintext

[user]
name = ObserverOfTime
email = chronobserver@disroot.org
signingkey = 8A2DEA1DBAEBCA9E
[core]
autocrlf = false
whitespace = cr-at-eol
editor = ${EDITOR:-nvim}
pager = ${PAGER:-nvimpager}
askpass = ksshaskpass
[extensions]
objectFormat = sha256
[init]
defaultBranch = master
[advice]
detachedHead = false
skippedCherryPicks = false
[credential]
helper = store
[credential "https://github.com"]
helper = !gh auth git-credential
[credential "https://gitlab.com"]
helper = !glab auth git-credential
[credential "https://framagit.org"]
helper = !glab auth git-crendential
[credential "https://gitlab.archlinux.org"]
helper = !glab auth git-crendential
[credential "https://invent.kde.org"]
helper = !glab auth git-crendential
[commit]
gpgSign = true
status = true
[push]
autoSetupRemote = true
[rebase]
autoSquash = true
[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
[tar "tar.br"]
command = brotli -c -f
[color]
ui = true
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = brightgreen bold
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = brightgreen bold
newHighlight = brightgreen bold 22
[diff]
wsErrorHighlight = all
mnemonicPrefix = true
colorMoved = default
[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 "magick"]
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 --cmd let\\ g:_mergetool=v:true +Gvdiffsplit\\! \"$MERGED\"
[mergetool "meld"]
cmd = meld \"$LOCAL\" \"$BASE\" \"$REMOTE\" -o \"$MERGED\"
[pretty]
log = format:%C(auto,cyan)%h %Creset%s%d %C(auto,yellow)[%an] %C(auto,red)(%ad)
[grep]
lineNumber = true
patternType = perl
fallbackToNoIndex = true
[diff-so-fancy]
markEmptyLines = false
[delta]
navigate = true
line-numbers = true
relative-paths = true
syntax-theme = gruvbox-dark
pager = less -R
[alias]
list = shortlog -ns
last = log -1 HEAD
hist = log --date=short --graph --pretty=log
rev = log --decorate --reverse --no-merges --stat @{1}..
amend = commit --amend -uno -a
wdiff = diff --word-diff
conflicts = diff --name-only --diff-filter=U
root = rev-parse --show-toplevel
head = rev-parse HEAD
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-with-lease
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[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 "git@gitlab.archlinux.org:"]
insteadOf = http://gitlab.archlinux.org/
insteadOf = @arch:
[url "aur@aur.archlinux.org:"]
insteadOf = http://aur.archlinux.org/
insteadOf = @aur: