aboutsummaryrefslogtreecommitdiff
path: root/object/commit/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/commit/commit.go')
-rw-r--r--object/commit/commit.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/object/commit/commit.go b/object/commit/commit.go
new file mode 100644
index 00000000..e89b5368
--- /dev/null
+++ b/object/commit/commit.go
@@ -0,0 +1,19 @@
+package commit
+
+import (
+ "codeberg.org/lindenii/furgit/object/id"
+ "codeberg.org/lindenii/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
+}