Files
dotfiles/.config/git/config
Julian Prein d51cf9d5e1 git: Set some fetch options
Use [compact output][1]:

> In compact output mode, specified with configuration variable
> fetch.output, if either entire <from> or <to> is found in the other
> string, it will be substituted with * in the other string. For
> example, master -> origin/master becomes master -> origin/*.

Automatically prune branches and tags.

Set parallelization to use a value set by git as otherwise it defaults
to 1.

[1]: git-fetch(1)
2022-06-23 23:58:57 +02:00

72 lines
1.7 KiB
Plaintext

[advice]
addIgnoredFile = off
detachedHead = off
[alias]
# Automatically fixup/squash marked commits without opening the
# git-rebase-todo
autofixup = -c sequence.editor=/bin/true rebase -i --autosquash
autosquash = autofixup
branches = track
changes = flog HEAD...FETCH_HEAD
checkout-worktree = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-checkout-worktree\""
filter-repo = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/git/git-filter-repo/git-filter-repo\""
fixes = log -1 --pretty=fixes
flog = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/glog\""
root = rev-parse --show-toplevel
signoff = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-signoff\""
spull = "!__git_spull() { git pull \"$@\" && git submodule sync --recursive && git submodule update --init --recursive; }; __git_spull"
track = "!\"${XDG_CONFIG_HOME:-$HOME/.config}/zsh/autoload/git/git-track\""
[blame]
date = short
[branch]
autosetuprebase = always
[color "status"]
added = 076
untracked = 014
[commit]
gpgsign = true
verbose = true
[core]
abbrev = 12
pager = diff-so-fancy | less --tabs=8 -Rg -+FX
[diff]
submodule = log
tool = nvimdiff
[difftool "meld"]
path = /usr/bin/meld
[fetch]
output = compact
prune = true
pruneTags = true
parallel = 0
[gpg]
program = gpg.loopback
[init]
defaultBranch = main
[log]
follow = true
[merge]
log = true
suppressDest = *
[pretty]
fixes = Fixes: %h (\"%s\")
[pull]
ff = yes
rebase = true
[push]
default = current
[rebase]
autostash = true
[rerere]
enabled = true
[status]
submodulesummary = true
[user]
email = druckdev@protonmail.com
name = Julian Prein
signingkey = C0A44F69F2E29F6586C86B96CA6B3A516FAC2555
[include]
path = user.config