Fast implementation of Git in pure Go
1package object
2
3import (
4 "codeberg.org/lindenii/furgit/objectid"
5 "codeberg.org/lindenii/furgit/objecttype"
6)
7
8// Commit represents a Git commit object.
9type Commit struct {
10 Tree objectid.ObjectID
11 Parents []objectid.ObjectID
12 Author Signature
13 Committer Signature
14 Message []byte
15 ChangeID string
16 ExtraHeaders []ExtraHeader
17}
18
19// ObjectType returns TypeCommit.
20func (commit *Commit) ObjectType() objecttype.Type {
21 _ = commit
22
23 return objecttype.TypeCommit
24}