{% extends "base.html" %} {% block content %}
Back to commits

{{ commit.message }}

{{ commit.id }}
{{ commit.author }} {{ (commit.timestamp or "")[:19] }} branch: {{ commit.branch }} {% if commit.total_added or commit.total_removed %} {% if (commit.total_added or 0) > 0 %}+{{ commit.total_added }}{% endif %} {% if (commit.total_removed or 0) > 0 %}-{{ commit.total_removed }}{% endif %} in {{ commit.files_changed }} file(s) {% endif %}
{% if parent or second_parent %}
{% if parent %} parent: {{ parent.id[:12] }} — {{ parent.message[:60] }} {% endif %} {% if second_parent %} merge: {{ second_parent.id[:12] }} — {{ second_parent.message[:60] }} {% endif %}
{% endif %}
{% if changes %}

Files Changed ({{ changes|length }})

{% for ch in changes %}
{{ ch.file_path }} {{ ch.change_type }}
{% if (ch.lines_added or 0) > 0 %}+{{ ch.lines_added }}{% endif %} {% if (ch.lines_removed or 0) > 0 %}-{{ ch.lines_removed }}{% endif %}
{% if ch.original_diff or ch.after_hash %}
{% if ch.original_diff %} {% endif %} {% if ch.after_hash %} {% endif %}
{% if ch.original_diff %}
            {%- for line in ch.original_diff.split('\n') -%}
              {%- if line.startswith('+') and not line.startswith('+++') -%}
                {{ line }}
              {%- elif line.startswith('-') and not line.startswith('---') -%}
                {{ line }}
              {%- elif line.startswith('@@') -%}
                {{ line }}
              {%- elif line.startswith('---') or line.startswith('+++') -%}
                {{ line }}
              {%- elif line.strip() == '' -%}
                 
              {%- else -%}
                {{ line }}
              {%- endif -%}
            {%- endfor -%}
          
{% endif %} {% if ch.after_hash %}
{% if ch.current_diff.strip() %}
            {%- for line in ch.current_diff.split('\n') -%}
              {%- if line.startswith('+') and not line.startswith('+++') -%}
                {{ line }}
              {%- elif line.startswith('-') and not line.startswith('---') -%}
                {{ line }}
              {%- elif line.startswith('@@') -%}
                {{ line }}
              {%- elif line.startswith('---') or line.startswith('+++') -%}
                {{ line }}
              {%- elif line.strip() == '' -%}
                 
              {%- else -%}
                {{ line }}
              {%- endif -%}
            {%- endfor -%}
          
{% else %}
File is identical to the committed version.
{% endif %}
{% endif %} {% endif %}
{% endfor %}
{% endif %}
{% endblock %}