aboutsummaryrefslogtreecommitdiff
path: root/object/signed/commit/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/signed/commit/commit.go')
-rw-r--r--object/signed/commit/commit.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/object/signed/commit/commit.go b/object/signed/commit/commit.go
new file mode 100644
index 00000000..cd0ff197
--- /dev/null
+++ b/object/signed/commit/commit.go
@@ -0,0 +1,15 @@
+package signedcommit
+
+import objectid "codeberg.org/lindenii/furgit/object/id"
+
+// Commit represents the payload and signatures parsed from a raw comit object.
+type Commit struct {
+ body []byte
+ payload []byteRange
+ signatures map[objectid.Algorithm][]byteRange
+}
+
+type byteRange struct {
+ start int
+ end int
+}