aboutsummaryrefslogtreecommitdiff
path: root/object/commit/commit.go
blob: a8a247bf9232cff5bd961fcbd00c13dbb82ffe7f (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     []byte
	ExtraHeaders []ExtraHeader
}

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