Enable templating for dotfiles

This commit is contained in:
2018-08-17 19:44:31 +02:00
parent 153d16d540
commit 2654e28869
10 changed files with 79 additions and 9 deletions

90
git/gitconfig.j2 Normal file
View File

@@ -0,0 +1,90 @@
[user]
name = Hannes Körber
email = {{ machine.mail }}
signingkey = 0x078A167A8741BD30
[github]
user = hakoerber
[alias]
untrack = "rm --cached"
unstage = "reset HEAD"
unmodify = "checkout --"
ignore-changes = "update-index --assume-unchangend"
unignore-changes = "update-index --no-assume-unchanged"
visual = "!gitk --all"
staged = "diff --staged"
fe = "fetch --all --prune"
co = "checkout"
cm = "commit --message"
ci = "commit"
st = "status"
br = "branch"
rb = "rebase"
rbi = "rebase --interactive"
rbc = "rebase --continue"
rba = "rebase --abort"
df = "diff"
gr = "! git graph"
ap = "add --patch"
k = "!gitk --all"
serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git
last = "log -1 HEAD"
logl = log --graph --decorate --pretty=oneline --abbrev-commit --all
pushall = "!sh -c 'for r in $(git remote) ; do [[ "$r" != "upstream" ]] && { echo \"--- [$r] ---\" ; git push $r \"$@\" ; } ; done' -"
branch-clean = "!sh -c 'git branch --merged | grep -v -e master -e develop -e '^*' | xargs --no-run-if-empty git branch -d'"
brc = "!git branch-clean"
graph = log --graph --pretty=format:'%C(yellow)%h%Creset%C(bold red)% D%Creset %C(green)(%cr) %C(blue)%an<%ae>%Creset%n %C(bold white)%s%Creset' --all
intercommit = !bash -c 'interdiff <(git show $1) <(git show $2) | less -FRS' -
drop = !git rebase --onto $1^ --
[core]
fileMode = true
whitespace = "blank-at-eol,space-before-tab,blank-at-eof"
abbrev = 8
[color]
ui = true
[column]
ui = auto
[push]
default = simple
[merge]
tool = vimdiff
[gc]
auto = 0
[advice]
pushNonFastForward = false
pushUpdateRejected = false
statusHints = false
commitBeforeMerge = false
detachedHead = false
[commit]
gpgSign = {{ machine.git_gpg_sign|bool }}
cleanup = strip
status = true
[status]
relativePaths = false
submoduleSummary = true
[pager]
log = less
show = less
diff = less
[gpg]
program = gpg2
[rebase]
autoSquash = true
[diff]
submodule = log
mnemonicPrefix = true
[branch]
autoSetupMerge = true
[clean]
requireForce = true