{% import "macros.html" as ui %}
{{ ui.view_header("git", "GIT", "The history of the project, commit by commit. Click a commit to see what changed: its files on top, the removed (−) and added (+) lines below.") }} {% if params.file %}

Only commits that changed {{ params.file }} · show all

{% endif %} {% if commits is none %}

This project is not a git repository (or git is not installed).

{% elif not commits %}

No commits yet.

{% else %} {# Top: every branch over time (oldest on the left); clicking a commit shows its changes below. #}

Loading branches…

{# Left: the commits, newest first, each with its hash on the side. Clicking one loads its changes on the right and opens its full message (the reasons behind it) below the subject. #}
    {% for commit in commits %}
  1. {{ commit.short }}
    {% if commit.body %}
    {{ commit.body | commit_message | safe }}
    {% endif %}
  2. {% endfor %}
{# Right: the changes of the selected commit. #}

Loading…

{% endif %}