mirror of
https://github.com/morten-olsen/configs.git
synced 2026-02-08 00:46:24 +01:00
improved context system
This commit is contained in:
28
playbooks/roles/software_git/templates/gitconfig.context.j2
Normal file
28
playbooks/roles/software_git/templates/gitconfig.context.j2
Normal file
@@ -0,0 +1,28 @@
|
||||
[user]
|
||||
email = {{ git.email }}
|
||||
name = {{ git.name }}
|
||||
{% if 'signing_key' in git %}
|
||||
signingkey = {{ git.signing_key }}
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
|
||||
[gpg]
|
||||
format = ssh
|
||||
|
||||
[gpg "ssh"]
|
||||
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
|
||||
{% endif %}
|
||||
|
||||
{% if 'replacements' in git %}
|
||||
{% for replacement in git.replacements %}
|
||||
|
||||
[url "{{ replacement.use }}"]
|
||||
insteadOf = "{{ replacement.instead_of }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
[url "git@github-{{name}}:"]
|
||||
insteadOf = https://github.com/
|
||||
|
||||
Reference in New Issue
Block a user