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

Commit {{ commitid|short }} {{ splitted_message[0] }}
raw patch tree {% if commit.parents|length == 1 %} parent {% elif commit.parents|length > 1 %}
{% endif%}

{% if commit.author| author2user == commit.committer| author2user %} {{ diff|count}} file{{'s' if diff|count > 1 }} Authored and Committed by {{ commit.author | author2user |safe }} {{ commit.commit_time | humanize }} {% else %} {{ diff|count}} file{{'s' if diff|count > 1 }} Authored by {{ commit.author | author2user |safe }} {{ commit.commit_time | humanize }} , Committed by {{ commit.committer | author2user |safe }} {{ commit.commit_time | humanize }} , {% endif%}
{% if splitted_message|length > 1 %}
        {% for message in splitted_message %}
{{ message }}
        {% endfor %}
    
{% endif %}
{% set filecount = 0 %} {% for patch in diff %} {% set filecount = filecount + 1 %}
{% if patch | hasattr('new_file_path') %} {{ patch.new_file_path | unicode }} {% elif patch | hasattr('delta') %} {{ patch.delta.new_file.path | unicode }} {% endif %} {% 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 %}
{% if patch.is_binary %}

Binary diffs cannot be rendered.

{% else %} {% autoescape false %} {{ patch|patch_to_diff|html_diff}} {% endautoescape %} {% endif %}
{% endfor %} {% endblock %} {% block jscripts %} {{ super() }} {% endblock %}