{% extends "repo_master.html" %} {% block title %}Commit - {{ repo.name }} - {{ commitid }}{% endblock %} {%block tag %}commit{% endblock %} {% block repo %} {% set splitted_message = commit.message.split('\n') %}

{{ splitted_message[0] }} (commit: {{ commitid|short }} - tree) {% if splitted_message|length > 1 %} {% for message in splitted_message %} {% if loop.index > 1 %} {{ message }} {% endif %} {% endfor %} {% endif %}

Author {{ commit.author | author2user |safe }} - {{ commit.commit_time | format_ts}}
Committer {{ commit.committer | author2user |safe }} - {{ commit.commit_time | format_ts }}
Parent {% for parent in commit.parents %} {{ parent.oid.hex }}
{% endfor %}
Changes
    {% for patch in diff %}
  • {% if not patch.is_binary %} {% if patch | hasattr('additions') %} {% if (patch.additions + patch.deletions) %} {% if patch.additions > 0 %}+{{ patch.additions }}{% endif %} {% if patch.deletions > 0 %}-{{ patch.deletions }}{% endif %} {% endif %} {% else %} {% if (patch.line_stats[1] + patch.line_stats[2]) %} {% if patch.line_stats[1] > 0 %}+{{ patch.line_stats[1] }}{% endif %} {% if patch.line_stats[2] > 0 %}-{{ patch.line_stats[2] }}{% endif %} {% endif %} {% endif %} {% endif %} {{ patch.new_file_path }}
  • {% endfor %}
{% for patch in diff %}
{% if patch | hasattr('new_file_path') %}

{{ patch.new_file_path }}

{% elif patch | hasattr('delta') %}

{{ patch.delta.new_file.path }}

{% endif %}
{% if patch.is_binary %}

Binary diffs cannot be rendered.

{% else %} {% autoescape false %} {{ patch|patch_to_diff|html_diff}} {% endautoescape %} {% endif %}
{% endfor %} {% endblock %}