7 Commits
Author SHA1 Message Date
xavierandClaude Sonnet 5 a787c7ed51 fix(git): Guard $gitConfig.name/email lookup against missing map keys
Accessing a missing key on a map value in text/template raises an
error before `default` can run, so `configs.git` without `name`/`email`
(or hosts without a `configs` key, e.g. termux-*) broke `chezmoi diff`
with "map has no entry for key". Use `hasKey` before accessing each
field instead.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0145M6KGu5gQ3brTPzqs8NwG
2026-09-11 23:42:19 +02:00
Xavier LogeraisandCopilot e17a18d7c5 feat(git): Templatize git config for per-host/user identity override
Convert private_dot_config/git/config to config.tmpl so that the
[user] name/email can be overridden per host/user via the existing
`configs` key in .chezmoidata/hosts*.yaml, falling back to the
default identity (Xavier Logerais / xavier@logerais.com) when no
override is defined.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-11 15:23:50 +02:00
xavier 79b4f995e8 feat: Update config for git 2026-07-04 19:09:17 +02:00
xavier cca9d58b2d feat: Mise à jour de la configuration git 2025-10-20 18:33:51 +02:00
xavier fac758eca3 feat: Mise à jour du fichier gitignore global 2025-10-20 18:18:15 +02:00
xavier 6da54063d9 feat: Mise à jour ~/.config/git 2025-02-13 23:55:42 +01:00
xavier de5833e776 feat: Ajout ~/.config/git 2025-02-13 22:45:41 +01:00