aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/git
diff options
context:
space:
mode:
Diffstat (limited to 'home/dot_config/git')
-rw-r--r--home/dot_config/git/config.tmpl14
1 files changed, 10 insertions, 4 deletions
diff --git a/home/dot_config/git/config.tmpl b/home/dot_config/git/config.tmpl
index 9202c61..f83efeb 100644
--- a/home/dot_config/git/config.tmpl
+++ b/home/dot_config/git/config.tmpl
@@ -1,15 +1,21 @@
[init]
- defaultBranch = master
+ defaultBranch = {{ dig "git" "default_branch" "master" . }}
[core]
quotepath = off
[user]
- email = loek@pipeframe.xyz
- name = Loek Le Blansch
- signingkey = {{ env "GPG_ID_GIT" }}
+ {{- with (dig "git" "email" nil .) }}
+ email = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "name" nil .) }}
+ name = {{ . }}
+ {{- end }}
+ {{- with (dig "git" "gpg_id" nil .) }}
+ signingkey = {{ . }}
[commit]
gpgsign = true
[gpg]
program = {{ env "XDG_DATA_HOME" }}/bin/gpg-git
+ {{- end }}
[credential]
helper = cache --timeout 7200
helper = store