From 154f68bfd9ab4660dc764dbed6190289082b5c94 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 8 Feb 2025 22:26:39 +0100 Subject: feat: Add syntax highlight to diff --- templates/gititemcommit.qtpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/gititemcommit.qtpl') diff --git a/templates/gititemcommit.qtpl b/templates/gititemcommit.qtpl index d223315..ec67757 100644 --- a/templates/gititemcommit.qtpl +++ b/templates/gititemcommit.qtpl @@ -3,7 +3,7 @@ {% code type GitItemCommitPage struct { Commit *object.Commit - Diff string + Diff []byte } %} @@ -14,6 +14,6 @@ type GitItemCommitPage struct { {%= Commit(name, g.Commit, true) %}
-
{%s g.Diff %}
+
{%z= g.Diff %}
{% endfunc %} -- cgit v1.2.3