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

import "codeberg.org/lindenii/furgit/oid"

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

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