{# Goblet - Web based git repository browser Copyright (C) 2013 Dennis Kaarsemaker See the LICENSE file for licensing details #} {% extends "repo_base.html" %} {% block subtitle %}{{ commit.message|shortmsg }} · {{ commit.hex[:7] }}{% endblock %} {% block repo_content %}
{{ commit.commit_time|strftime("%b %d, %Y") }} Download as patch, tar.xz or zip file.
{{ commit.message|shortmsg }} {{ commit.message|longmsg }}
{% if commit.parents %}
Parent commit{% if commit.parents|length > 1%}s{% endif %} {% for parent in commit.parents %} {{ parent.hex[:7] }} {{ parent.message|shortmsg }}
{% endfor %}
{% endif %} Created by {{ commit.author.name }}, {{ commit.author.time|humantime }} {% if commit.committer.email != commit.author.email %}
Committed by {{ commit.committer.name }}, {{ commit.committer.time|humantime }} {% for ack, who in commit.message|acks %}
{{ ack }}: {{ who|join(", ") }}{% endfor %} {% endif %}

Showing {{ diff.changes['files']|length }} changed file{% if diff.changes['files']|length != 1 %}s{% endif %} ({{ stat[None]['+'] }} addition{% if stat[None]['+'] != 1 %}s{% endif %}, {{ stat[None]['-'] }} deletion{% if stat[None]['-'] != 1 %}s{% endif %})

{% for file in diff.changes['files'] %} {% if file[1] in stat %} {% else %} {% endif %} {% endfor %}
{{ file[1] }} {% if stat[file[1]]['+'] %}+{{ stat[file[1]]['+'] }}{% endif %}{% if stat[file[1]]['-'] %}{% if stat[file[1]]['+'] %}/{% endif %}-{{ stat[file[1]]['-'] }}{% endif %}
 
(Binary file)
{% for file in diff.changes['files'] %}

{{ file[1] }} {% set file_link = tree_link(repo, commit.hex, path, file[1]) %} {% if commit.parents %} {% set old_file_link = tree_link(repo, commit.parents[0].hex, path, file[1]) %} {% endif %} view | raw | blame | history

{% if not formatdiff[file[1]] %} {% endif %} {% for hunk in formatdiff[file[1]] %} {% set old = hunk.old_start %} {% set new = hunk.new_start %} {% for line in hunk.data %} {% if line[1] == 32 %} {% set old = old + 1 %}{% set new = new +1 %} {% elif line[1] == 45 %} {% set old = old + 1 %} {% elif line[1] == 43 %} {% set new = new + 1 %} {% elif line[1] == 66 %} (Binary change) {% endif %} {% endfor %} {% endfor %}
  
Binary file change
{{ hunk.header }}
{{ old }}{{ new }}
{{ decode(line[0]) }}
{{ old }} 
{{ decode(line[0]) }}
 {{ new }}
{{ decode(line[0]) }}
  
{% endfor %}
{% endblock %}