[user] name = {{ .name | quote }} {{- if eq .hosttype "work" }} email = {{ .email_work | quote }} {{- else }} email = {{ .email_personal | quote }} {{- end }} [git] private-commits = "description(glob:'private:*') | bookmarks('merge')" [templates] {{- if eq .hosttype "work" }} git_push_bookmark = '"2025_{{ .github_work }}_jj_" ++ change_id.short()' {{- else }} git_push_bookmark = '"{{ .github_personal }}_jj_" ++ change_id.short()' {{- end }} [colors] "diff removed token" = { fg = "red", underline = false } "diff added token" = { fg = "green", underline = false } [revset-aliases] "immutable_heads()" = "builtin_immutable_heads() | (trunk().. & ~mine())" "why_immutable(r)" = "r | roots(r:: & immutable_heads())" "closest_bookmark(to)" = "heads(::to & bookmarks())" [aliases] tug = ["bookmark", "move", "--from", "closest_bookmark(@-)", "--to", "@-"] [ui] default-command = ["log"] diff-formatter = ":git" {{ if eq .hosttype "work" -}} [[--scope]] --when.repositories = ["~/projects/personal", "~/.local/share/chezmoi"] [--scope.user] email = {{ .email_personal | quote }} [--scope.templates] git_push_bookmark = '"{{ .github_personal }}_jj_" ++ change_id.short()' {{- end }}