Files
dotfiles/.config/git/config
druckdev 7f52c7a4cb git,zsh:autoload: Move git-track into own function
Move `git-track` into its own autoloadable function.
This way it is
better maintainable as in one-liner format and brings the possibility of
having more complexity (e.g. for better portability).
By that it is also now executable as `git-track` as well as `git track`
as before.
2022-01-31 12:50:54 +01:00

48 lines
1.1 KiB
Plaintext

[advice]
addIgnoredFile = off
detachedHead = off
[alias]
branches = track
fixes = log -1 --pretty=fixes
root = rev-parse --show-toplevel
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\""
[color "status"]
added = 076
untracked = 014
[commit]
gpgsign = true
verbose = true
[core]
abbrev = 12
excludesfile = ~/.config/git/ignore
pager = diff-so-fancy | less --tabs=8 -Rg -+FX -p'^(commit|added|deleted|modified|renamed|tag|(Submodule .* [a-f0-9]+[.]+[a-f0-9]+)|(stash@{[0-9]+}))[: ]'
[diff]
submodule = log
tool = nvimdiff
[difftool "meld"]
path = /usr/bin/meld
[include]
path = user.config
[init]
defaultBranch = main
[merge]
log = true
suppressDest = *
tool = nvimdiff
[pretty]
fixes = Fixes: %h (\"%s\")
[pull]
ff = yes
rebase = true
[push]
default = current
[rebase]
autostash = true
[status]
submodulesummary = true
[user]
email = druckdev@protonmail.com
name = druckdev
signingkey = C0A44F69F2E29F6586C86B96CA6B3A516FAC2555