aboutsummaryrefslogtreecommitdiff
path: root/object/commit.go
blob: bd48bb44a2302dc511a1ceb53aeb79634d5aeef5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package object

import (
	"codeberg.org/lindenii/furgit/objectid"
	"codeberg.org/lindenii/furgit/objecttype"
)

// Commit represents a Git commit object.
type Commit struct {
	Tree         objectid.ObjectID
	Parents      []objectid.ObjectID
	Author       Signature
	Committer    Signature
	Message      []byte
	ChangeID     string
	ExtraHeaders []ExtraHeader
}

// ObjectType returns TypeCommit.
func (commit *Commit) ObjectType() objecttype.Type {
	_ = commit
	return objecttype.TypeCommit
}