aboutsummaryrefslogtreecommitdiff
path: root/object/commit/commit.go
blob: 6a89bce991d8bf036215e4e33ba3af59e8f16cfc (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
24
25
package commit

import (
	"lindenii.org/go/furgit/object/id"
	"lindenii.org/go/furgit/object/signature"
)

// Commit represents a fully materialized Git commit object.
//
// Labels: MT-Unsafe.
type Commit struct {
	Tree         id.ObjectID
	Parents      []id.ObjectID
	Author       signature.Signature
	Committer    signature.Signature
	Message      []byte
	ChangeID     string
	ExtraHeaders []ExtraHeader
}

// ExtraHeader represents an extra header in a Git object.
type ExtraHeader struct {
	Key   string
	Value []byte
}