{# SPDX-FileCopyrightText: 2026 rishmadaan SPDX-License-Identifier: GPL-3.0-or-later #} {% if stale %}
{{ stale_note or "This file no longer has these changes — reload the page for the current list." }}
{% elif read_error %}
Could not load this file's diff: {{ read_error }} This is a failed read, not an empty change.
{% elif diff.conflicted %}
Conflicted file — resolve the merge in a terminal.
{% elif diff.binary %}
Binary file changed — no text diff.
{% elif not diff.hunks %} {% if diff.meta == "renamed with no content changes" %}
Renamed with no content changes.
{% elif diff.meta == "file mode changed" %}
File mode changed. No lines changed.
{% elif cut %}
Only the start of this diff was read (it is larger than 512 KB), and it holds no complete change to show.
{% else %}
No changes to show.
{% endif %} {% else %}
{% for hunk in diff.hunks %} {% for line in hunk.lines %} {% endfor %} {% endfor %}
{{ hunk.header }}
{{ line.old_no if line.old_no is not none }} {{ line.new_no if line.new_no is not none }} {{ line.text }}
{% if diff.truncated or cut %} {% if full_note %}
First {{ "500 diff lines" if diff.truncated else "512 KB of this diff" }} shown. {{ full_note }}
{% else %}
Truncated — showing the first {{ "500 lines" if diff.truncated else "512 KB" }}. gitstow diff in a terminal shows everything.
{% endif %} {% endif %} {% endif %}