{% if not f.readable %}

Cannot read file — try running garuda-pilot as root, or use sudo pacdiff instead.

{% elif not diff_lines %}

Files are identical — the pacnew can be safely removed.

{% else %}
{% for line in diff_lines %} {% if line.type == "header" %}
{{ line.content }}
{% elif line.type == "hunk" %}
{{ line.content }}
{% elif line.type == "add" %}
+{{ line.content }}
{% elif line.type == "remove" %}
-{{ line.content }}
{% else %}
{{ line.content }}
{% endif %} {% endfor %}
{% endif %}
Resolve:
Use new version: sudo mv {{ f.pacnew_path }} {{ f.current_path }} copy
Keep current: sudo rm {{ f.pacnew_path }} copy
Merge manually: sudo nvim -d {{ f.current_path }} {{ f.pacnew_path }} copy