{#
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'] %}
{{ file[1] }} |
{% if file[1] in stat %}
{% if stat[file[1]]['+'] %}+{{ stat[file[1]]['+'] }}{% endif %}{% if stat[file[1]]['-'] %}{% if stat[file[1]]['+'] %}/{% endif %}-{{ stat[file[1]]['-'] }}{% endif %}
|
|
{% else %}
(Binary file) |
{% endif %}
{% endfor %}
{% 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]] %}
| | Binary file change |
{% endif %}
{% for hunk in formatdiff[file[1]] %}
{% set old = hunk.old_start %}
{% set new = hunk.new_start %}
… | … | {{ hunk.header }} |
{% for line in hunk.data %}
{% if line[1] == 32 %}
{{ old }} | {{ new }} | {{ decode(line[0]) }} |
{% set old = old + 1 %}{% set new = new +1 %}
{% elif line[1] == 45 %}
{{ old }} | | {{ decode(line[0]) }} |
{% set old = old + 1 %}
{% elif line[1] == 43 %}
| {{ new }} | {{ decode(line[0]) }} |
{% set new = new + 1 %}
{% elif line[1] == 66 %}
| | (Binary change)
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endblock %}