{# vim ft=django #} {% import "macros/scmutils.html" as utils with context %}
{# #}{{stats.count_files}} files changed, {{stats.count_insertions}} insertions(+), {{stats.count_deletions}} deletions(-) {# #}{% for change in changes -%} {{change.status_char}} {%- if change.old_file.path != change.new_file.path -%} {% if change.old_file.path %} {{change.old_file.path}}{% endif %} => {%- endif %} {{change.new_file.path}} {# #}{% endfor -%}
{{change.status_char}} {%- if change.old_file.path != change.new_file.path -%} {% if change.old_file.path %} {{change.old_file.path}}{% endif %} => {%- endif %} {{change.new_file.path}}{# #}{# #} +{{change.count_insertions}}{# #} -{{change.count_deletions}}{# #}{# #}
{%- for hunk in change.hunks %} {# #}{%- set hunk_index = loop.index -%} @@ {{hunk.old_start}},{{hunk.old_lines}} {{hunk.new_start}},{{hunk.new_lines}} {# #}@@{{hunk.header.split('@@')[-1][:-1]}}{# #} {# #}{% for line in hunk.lines -%} {%- if line.inserted -%} + {%- elif line.deleted -%} - {%- else %} {% endif -%} {{line.content}}{# #} {%- endfor %} {% endfor -%}