{# 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|dlength > 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|dlength }} changed file{% if diff|dlength != 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 %} {% if file.hunks %} {% else %} {% endif %} {% endfor %}
{{ decode(file.new_file_path) }} {% if stat[file.new_file_path]['+'] %}+{{ stat[file.new_file_path]['+'] }}{% endif %}{% if stat[file.new_file_path]['-'] %}{% if stat[file.new_file_path]['+'] %}/{% endif %}-{{ stat[file.new_file_path]['-'] }}{% endif %}
 
(Binary file)
{% for file in diff %}
{% set file_link = tree_link(repo, commit.hex, path, file.new_file_path) %}

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

{% if not file.hunks %} {% endif %} {% for hunk in file.hunks %} {% set old = hunk.old_start %} {% set new = hunk.new_start %} {% for status,line in hunk.lines %} {% if status == ' ' %} {% set old = old + 1 %}{% set new = new +1 %} {% elif status == '-' %} {% set old = old + 1 %} {% elif status == '+' %} {% set new = new + 1 %} {% endif %} {% endfor %} {% endfor %}
  
Binary file change
@@ -{{old}},{{hunk.old_lines}} + {{new}},{{hunk.new_lines}}
{{ old }}{{ new }}
{{ decode(line) }}
{{ old }} 
{{ decode(line) }}
 {{ new }}
{{ decode(line) }}
{% endfor %}
{% endblock %}