wayver's git archive


a simple self-hosted git server
git clone https://git.wayver.dev/bile

templates/commit.html@f4279bc2ca927f6f651a20c5f0e7b5ebf76cc3a4

raw
Date Commit Message Author Files + -
2026-02-19 17:51 large refactoring wayverd 53 2153 1683
...

1{% extends "base.html" %}
2
3{% block title %}{{repo|repo_name}} commit {{commit|short_id}} - {{config.site_name}}{% endblock %}
4
5{% block content %}
6  {% include "repo-navbar.html" %}
7  <b>Commit:</b> <span class="commit-hash">{{commit.id()}}</span> (<a href="/{{repo|repo_name|urlencode_strict}}/tree/{{commit.id()}}">tree</a>)
8  {{self.refs()|safe}}
9  <br>
10  {% for parent_id in self.parent_ids() %}
11    <b>Parent:</b> <a href="/{{repo|repo_name|urlencode_strict}}/commit/{{parent_id}}" class="commit-hash">{{parent_id}}</a> (<a href="/{{repo|repo_name|urlencode_strict}}/tree/{{parent_id}}">tree</a>)
12    <br>
13  {% endfor %}
14  <b>Author:</b> {{commit.author()|ref|signature_email_link|safe}}
15  <br>
16  {% if commit.author().name() != commit.committer().name() || commit.author().email() != commit.committer().email() %}
17    <b>Committer:</b> {{commit.committer()|ref|signature_email_link|safe}}
18    <br>
19  {% endif %}
20  <b>Date:</b> {{commit.time()|format_datetime("%c %z")}}
21  <br>
22  {% let stats = diff.stats().unwrap() %}
23  {{stats.files_changed()}} files changed; {{stats.insertions()}} insertions {{stats.deletions()}} deletions
24  <hr />
25  <pre class="commit-message">{{commit.message().unwrap()}}</pre>
26  <hr />
27  <pre id="diff">{{self.diff()|safe}}</pre>
28{% endblock %}