3 files changed,
26 insertions(+),
15 deletions(-)
Author:
Oleksandr Smirnov
olexsmir@gmail.com
Committed at:
2026-02-23 15:06:59 +0200
Authored at:
2026-02-22 13:47:45 +0200
Change ID:
tpzzorunsslywylpkvqpmpwrxzxymuzy
Parent:
eb95e52
M
internal/git/repo.go
路路路 95 95 } 96 96 97 97 type Commit struct { 98 - Message string 99 - AuthorEmail string 100 - AuthorName string 101 - ChangeID string 102 - Committed time.Time 103 - Hash string 104 - HashShort string 98 + Message string 99 + AuthorEmail string 100 + AuthorName string 101 + CommitterName string 102 + CommitterEmail string 103 + Committed time.Time 104 + ChangeID string 105 + Hash string 106 + HashShort string 105 107 } 106 108 107 109 func newShortHash(h plumbing.Hash) string { return h.String()[:7] } 路路路 115 117 } 116 118 117 119 return &Commit{ 118 - Message: c.Message, 119 - AuthorEmail: c.Author.Email, 120 - AuthorName: c.Author.Name, 121 - ChangeID: changeID, 122 - Committed: c.Committer.When, 123 - Hash: c.Hash.String(), 124 - HashShort: newShortHash(c.Hash), 120 + Message: c.Message, 121 + AuthorEmail: c.Author.Email, 122 + AuthorName: c.Author.Name, 123 + CommitterName: c.Committer.Name, 124 + CommitterEmail: c.Committer.Email, 125 + Committed: c.Committer.When, 126 + ChangeID: changeID, 127 + Hash: c.Hash.String(), 128 + HashShort: newShortHash(c.Hash), 125 129 } 126 130 } 127 131
M
web/templates/repo_commit.html
路路路 28 28 {{ $commit.AuthorName }} 29 29 <a href="mailto:{{ $commit.AuthorEmail }}" class="commit-email">{{ $commit.AuthorEmail }}</a> 30 30 </div> 31 + {{ if ne $commit.AuthorEmail $commit.CommitterEmail }} 32 + <div> 33 + <strong>Committed by:</strong> 34 + {{ $commit.CommitterName }} 35 + <a href="mailto:{{ $commit.CommitterEmail }}" class="commit-email">{{ $commit.CommitterEmail }}</a> 36 + </div> 37 + {{ end }} 31 38 <div> 32 39 <strong>Committed at:</strong> 33 40 {{ humanizeTime $commit.Committed }}