Files
configs/playbooks/roles/software_git/templates/gitconfig.context.j2
2024-10-09 12:27:02 +02:00

34 lines
586 B
Django/Jinja

[user]
email = {{ git.email }}
name = {{ git.name }}
{% if 'signing_key' in git %}
signingkey = {{ git.signing_key }}
[commit]
gpgsign = true
[gpg]
format = ssh
[gpg "ssh"]
{% if mac_os %}
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
{% else %}
program = "/opt/1Password/op-ssh-sign"
{% endif %}
{% 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/