all repos

mugit @ 3128bfd

🐮 git server that your cow will love
2 files changed, 20 insertions(+), 4 deletions(-)
support jj change-id
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-10 17:45:05 +0200
Change ID: zoyukrqomkvkrkmlozmqrmuwnrokmovx
Parent: 155aa35
M internal/git/repo.go

@@ -72,22 +72,32 @@ }

type Commit struct { Message string + AuthorEmail string + AuthorName string + ChangeID string + Committed time.Time Hash string HashShort string - AuthorName string - AuthorEmail string - Committed time.Time } func newShortHash(h plumbing.Hash) string { return h.String()[:7] } func newCommit(c *object.Commit) *Commit { + var changeID string + for _, header := range c.ExtraHeaders { + if header.Key == "change-id" { + changeID = header.Value + break + } + } + 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, } }
M web/templates/repo_commit.html

@@ -25,6 +25,12 @@ <div>

<strong>Committed at:</strong> {{ .commit.Committed }} </div> + {{ if .commit.ChangeID -}} + <div> + <strong>Change ID:</strong> + {{ .commit.ChangeID }} + </div> + {{- end }} <div> <strong>Parent:</strong> {{ range $i, $p := .parents -}}