aboutsummaryrefslogtreecommitdiff
path: root/home/dot_config/git/config.tmpl
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 16:10:11 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-02 16:10:11 +0200
commit7e57408f8ae303bd32c586b33011e29e237dd60a (patch)
tree68b4ff4656c8eb7c25ef6138ef5e7800c792b058 /home/dot_config/git/config.tmpl
parent84dd5d0d25b6ff22497c27407099a4d4b1293587 (diff)
add more options
Diffstat (limited to 'home/dot_config/git/config.tmpl')
-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