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.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/object/commit/commit.go b/object/commit/commit.go
new file mode 100644
index 00000000..e2e087f5
--- /dev/null
+++ b/object/commit/commit.go
@@ -0,0 +1,18 @@
+// Package commit provides representations, parsers, and serializers for commit objects.
+package commit
+
+import (
+ objectid "codeberg.org/lindenii/furgit/object/id"
+ objectsignature "codeberg.org/lindenii/furgit/object/signature"
+)
+
+// Commit represents a Git commit object.
+type Commit struct {
+ Tree objectid.ObjectID
+ Parents []objectid.ObjectID
+ Author objectsignature.Signature
+ Committer objectsignature.Signature
+ Message []byte
+ ChangeID string
+ ExtraHeaders []ExtraHeader
+}