1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "layout.html" %}
{% block title %}diff {{ commit.short_id }} · {{ owner.username }}/{{ repo.name }} — kitgit{% endblock %}
{% block content %}
<section class="kg-section">
<h1 class="kg-title">
<a href="/{{ owner.username }}/{{ repo.name }}">{{ owner.username }}/{{ repo.name }}</a>
· diff
</h1>
{% let tab = "commits" %}
{% let archive_ref = commit.id %}
{% include "partials/repo_tabs.html" %}
<p class="kg-meta">
<a href="/{{ owner.username }}/{{ repo.name }}/commits" title="View commits">
<span class="kg-icon" style="--icon:url('/static/icons/git-commit.svg')"></span>
{{ commit.short_id }}
</a>
· {{ commit.author }}
</p>
<p class="kg-title">
<a href="/{{ owner.username }}/{{ repo.name }}/commit/{{ commit.id }}{% if show_full %}?full=1{% endif %}">{{ commit.message }}</a>
{% let c = commit %}
{% let show_unverified = true %}
{% include "partials/verified_badge.html" %}
</p>
{{ diff_html|safe }}
{% if truncated && !show_full %}
<p class="kg-diff__truncated">
Large diffs are not rendered by default.
Showing the first 50 of {{ total_lines }} lines.
<a class="kg-btn kg-btn--ghost" href="/{{ owner.username }}/{{ repo.name }}/diff/{{ commit.id }}?full=1">Show full diff</a>
</p>
{% endif %}
</section>
{% endblock %}