all repos

mugit @ 0023ae8892c16a58b27905c5bf27163508e4b9af

🐮 git server that your cow will love
3 files changed, 26 insertions(+), 15 deletions(-)
ui: show both author and committer
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-23 15:06:59 +0200
Change ID: tpzzorunsslywylpkvqpmpwrxzxymuzy
Parent: eb95e52
M internal/git/repo.go

@@ -95,13 +95,15 @@ return strings.TrimSuffix(name, ".git")

} type Commit struct { - Message string - AuthorEmail string - AuthorName string - ChangeID string - Committed time.Time - Hash string - HashShort string + Message string + AuthorEmail string + AuthorName string + CommitterName string + CommitterEmail string + Committed time.Time + ChangeID string + Hash string + HashShort string } func newShortHash(h plumbing.Hash) string { return h.String()[:7] }

@@ -115,13 +117,15 @@ }

} return &Commit{ - Message: c.Message, - AuthorEmail: c.Author.Email, - AuthorName: c.Author.Name, - ChangeID: changeID, - Committed: c.Committer.When, - Hash: c.Hash.String(), - HashShort: newShortHash(c.Hash), + Message: c.Message, + AuthorEmail: c.Author.Email, + AuthorName: c.Author.Name, + CommitterName: c.Committer.Name, + CommitterEmail: c.Committer.Email, + Committed: c.Committer.When, + ChangeID: changeID, + Hash: c.Hash.String(), + HashShort: newShortHash(c.Hash), } }
M internal/handlers/repo.go

@@ -101,7 +101,7 @@ return

} if len(p.Commits) >= 3 { - p.Commits = p.Commits[:3] + p.Commits = p.Commits[:3:3] } if isMirror, err := repo.IsMirror(); isMirror && err == nil {
M web/templates/repo_commit.html

@@ -28,6 +28,13 @@ <strong>Author:</strong>

{{ $commit.AuthorName }} <a href="mailto:{{ $commit.AuthorEmail }}" class="commit-email">{{ $commit.AuthorEmail }}</a> </div> + {{ if ne $commit.AuthorEmail $commit.CommitterEmail }} + <div> + <strong>Committed by:</strong> + {{ $commit.CommitterName }} + <a href="mailto:{{ $commit.CommitterEmail }}" class="commit-email">{{ $commit.CommitterEmail }}</a> + </div> + {{ end }} <div> <strong>Committed at:</strong> {{ humanizeTime $commit.Committed }}