Skip to main content

TEMPLATE_GIT_COMMIT_GEMTEXT

Constant TEMPLATE_GIT_COMMIT_GEMTEXT 

Source
pub const TEMPLATE_GIT_COMMIT_GEMTEXT: &str = "# {{ commit.subject }}\n\n=> ../index.gmi Log\n\nAuthor: {{ commit.author_name }}\nDate:   {{ commit.datetime_display }}\nHash:   {{ commit.hash }}\n{% for parent in commit.parents %}\n=> ../commit/{{ parent.hash }}.gmi Parent {{ parent.hash_short }}\n{% endfor %}\n{% if commit.body %}\n\n{{ commit.body }}\n{% endif %}\n{% for file in changed_files %}\n## {{ file.path }} ({{ file.status }})\n\n```diff\n{% for line in file.diff_lines %}{{ line.content }}\n{% endfor %}```\n{% endfor %}\n";