aboutsummaryrefslogtreecommitdiff
path: root/object/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/commit.go')
-rw-r--r--object/commit.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/object/commit.go b/object/commit.go
new file mode 100644
index 00000000..0183ff02
--- /dev/null
+++ b/object/commit.go
@@ -0,0 +1,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
+}