[user]
	{%@@ if profile == "mko-laptop" @@%}
	email = marko.korhonen@rossum.fi
	{%@@ else @@%}
	email = marko@korhonen.cc
	{%@@ endif @@%}
	name = Marko Korhonen
	signingkey = F2B9F713E7ED627336DD85E444FA3F28CD931BB0

[commit]
	signoff = true
	gpgsign = true

[tag]
	gpgSign = true
	signoff = true

[format]
	signoff = true

[merge]
	prompt = false
  conflictstyle = diff3
	tool = nvim-merge

[mergetool "nvim-merge"]
	cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
	keepBackup = false

[diff]
	prompt = false
	tool = nvim-diff

[difftool "nvim-diff"]
	cmd = nvim -d $LOCAL $REMOTE

[pull]
	rebase = merges

[alias]
	mergetest = !git switch test && git pull && git merge --no-ff -m \"Merge $1 features to test\" $1
	upstream = !git push -u origin HEAD
	sync = !git pull && git push

[color]
	pager = no

[init]
	defaultBranch = main

[credential]
	helper = cache --timeout=600
	helper = !pass-git-helper $@

[rerere]
  enabled = true
