Files
dotfiles/.config/git/config
Julian Prein a26a899213 git: Make all bold colors bright
Make all bold colors (also) bright, since kitty does not render bold
colors in their bright version, but I've gotten used to how this looks.

For the graph I've gotten rid of the boldness and only switched to
bright versions since I think it makes no sense to have different line
weights for the branches (Although I apparently never noticed, so I
can't say that this was misleading in practice).
2025-09-12 16:51:36 +02:00

167 lines
4.4 KiB
Plaintext

# vim: set ft=gitconfig fdm=indent fdi= fml=0 fdl=0:
[advice]
addIgnoredFile = off
detachedHead = off
[alias]
# NOTE: git-external-script (./external-script.sh) is a small wrapper
# that launches external scripts from the ./scripts/ collection in the
# right directory, as shell commands in git aliases are executed from
# the top-level directory of the repository.
abort = "!git-external-script abort"
autosquash = -c sequence.editor=/bin/true rebase -i --autosquash
autofixup= autosquash
branch-rename = "!git-external-script branch-rename"
c = commit
changes = flog HEAD...FETCH_HEAD
checkout-worktree = "!git-external-script checkout-worktree"
cow = checkout-worktree
co = checkout
commit-last-msg = "!git-external-script commit-last-msg"
continue = "!git-external-script continue"
cont = continue
clm = commit-last-msg
last-msg = commit-last-msg
recommit = commit-last-msg --no-edit
f = fetch
fetch-tags-only = fetch origin "refs/tags/*:refs/tags/*"
ft = fetch-tags-only
filter-repo = !git-filter-repo
fixes = log -1 --pretty=fixes
glog = "!git-external-script glog"
https-and-ssh = "!git-external-script https-and-ssh"
ssh-and-https = https-and-ssh
l = log
last-changed = "!git-external-script last-changed"
ls = ls-files
make-fork = "!git-external-script make-fork"
p = push
perm-stash = "!git-external-script perm-stash"
root = rev-parse --show-toplevel
signoff = rebase --signoff
ss = stash
ssync = "!git-external-script ssync"
submodule-rm = "!git-external-script submodule-rm"
track = "!git-external-script track"
branches = track
[blame]
date = short
[branch]
autosetuprebase = always
sort = -committerdate
[clone]
filterSubmodules = yes
[color "diff"]
# Make all bold colors also bright. See diff_colors in git's diff.c
oldMoved = bold brightmagenta
oldMovedAlternative = bold brightblue
newMoved = bold brightcyan
newMovedAlternative = bold brightyellow
oldBold = bold brightred
newBold = bold brightgreen
[color "decorate"]
# Make all bold colors also bright. See decoration_colors in git's
# log-tree.c
branch = bold brightgreen
remoteBranch = bold brightred
tag = bold brightyellow
stash = bold brightmagenta
HEAD = bold brightcyan
grafted = bold brightblue
[color "grep"]
# Make all bold colors also bright. See GREP_OPT_INIT in git's grep.h
matchContext = bold brightred
matchSelected = bold brightred
[color "interactive"]
# Make all bold colors also bright. See init_add_i_state in git's
# add-interactive.c
help = bold brightred
prompt = bold brightblue
error = bold brightred
[color "remote"]
# Make all bold colors also bright. See keywords in git's sideband.c
warning = bold brightyellow
success = bold brightgreen
error = bold brightred
[color "status"]
added = 076
untracked = 014
[column]
ui = auto,column,dense
[commit]
gpgsign = true
# Add an additional newline, so that I can format the body more easily
# TODO: is there a way to use XDG_CONFIG_HOME?
template = ~/.config/git/message.template
verbose = true
[core]
abbrev = 12
#pager = delta
pager = diff-so-fancy | less --tabs=8 --RAW-CONTROL-CHARS
whitespace = trailing-spaces,space-before-tab,indent-with-non-tab
[delta]
navigate = true
commit-decoration-style = bold yellow box
file-style = bold yellow ul
file-decoration-style = none
hunk-header-decoration-style =
[diff]
# Color moved lines differently
colorMoved = default
colorMovedWS = ignore-all-space
# No rename limit, propagates to merge. and status.renameLimit too
renameLimit = 0
submodule = log
tool = nvimdiff
[difftool "meld"]
path = /usr/bin/meld
[fetch]
output = compact
prune = true
pruneTags = false
parallel = 0
[gpg]
program = gpg.loopback
[init]
defaultBranch = main
[interactive]
#diffFilter = delta --color-only
# Might need a `sudo cpan Term::ReadKey`
singleKey = true
[log]
follow = true
# Use bright instead of bold colors. See column_colors_ansi in git's
# color.c used by graph.c
graphColors = red,green,yellow,blue,magenta,cyan,brightred,brightgreen,brightyellow,brightblue,brightmagenta,brightcyan
[merge]
conflictstyle = diff3
log = true
suppressDest = *
[pretty]
fixes = Fixes: %h (\"%s\")
[pull]
ff = yes
rebase = true
[push]
default = current
[rebase]
autostash = true
[rerere]
enabled = false
[status]
submodulesummary = true
[submodule]
fetchJobs = 0
[trailer]
where = end
[user]
email = julian@druck.dev
name = Julian Prein
signingkey = C0A44F69F2E29F6586C86B96CA6B3A516FAC2555
[include]
path = user.config