aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemsummary.qtpl
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 17:33:24 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-02-15 17:33:24 +0100
commit27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33 (patch)
treeb1e4df482d7c78e1d7fc56e862b7c266ba2b8e8b /templates/gititemsummary.qtpl
parent4708ad8ffd96f3b457ff9d3a9660e7d0aa59a4b1 (diff)
downloadcerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.tar.gz
cerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.tar.bz2
cerrado-27400b0fce5d4ef3b7fd5ef4d25bac8f00754e33.zip
feat: Add wrapper for commit
Add a wrapper to the commit log that also contains possible reference. This will be useful once to later display the reference in the commit log.
Diffstat (limited to 'templates/gititemsummary.qtpl')
-rw-r--r--templates/gititemsummary.qtpl5
1 files changed, 2 insertions, 3 deletions
diff --git a/templates/gititemsummary.qtpl b/templates/gititemsummary.qtpl
index f2de5be..5d07680 100644
--- a/templates/gititemsummary.qtpl
+++ b/templates/gititemsummary.qtpl
@@ -1,12 +1,11 @@
{% import "github.com/go-git/go-git/v5/plumbing" %}
-{% import "github.com/go-git/go-git/v5/plumbing/object" %}
{% import "git.gabrielgio.me/cerrado/pkg/git" %}
{% code
type GitItemSummaryPage struct {
Tags []*git.TagReference
Branches []*plumbing.Reference
- Commits []*object.Commit
+ Commits []*git.CommitReference
}
%}
@@ -39,7 +38,7 @@ type GitItemSummaryPage struct {
<div class="row">
<div class="event-list">
{% for _, c := range g.Commits %}
- {%= Commit(name, c, false) %}
+ {%= Commit(name, c.Commit(), false) %}
{% endfor %}
</div>
</div>