aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititemcommit.qtpl')
-rw-r--r--templates/gititemcommit.qtpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/gititemcommit.qtpl b/templates/gititemcommit.qtpl
index d223315..7de1bdb 100644
--- a/templates/gititemcommit.qtpl
+++ b/templates/gititemcommit.qtpl
@@ -1,9 +1,9 @@
-{% import "github.com/go-git/go-git/v5/plumbing/object" %}
+{% import "git.gabrielgio.me/cerrado/pkg/git" %}
{% code
type GitItemCommitPage struct {
- Commit *object.Commit
- Diff string
+ Commit *git.CommitReference
+ Diff []byte
}
%}
@@ -14,6 +14,6 @@ type GitItemCommitPage struct {
{%= Commit(name, g.Commit, true) %}
</div>
<div class="code-view">
-<pre>{%s g.Diff %}</pre>
+<pre>{%z= g.Diff %}</pre>
</div>
{% endfunc %}