aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/fetch/size.go')
-rw-r--r--object/fetch/size.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/object/fetch/size.go b/object/fetch/size.go
new file mode 100644
index 00000000..5eac9461
--- /dev/null
+++ b/object/fetch/size.go
@@ -0,0 +1,10 @@
+package fetch
+
+import objectid "codeberg.org/lindenii/furgit/object/id"
+
+// Size returns the object content size at id.
+//
+// Labels: Life-Parent.
+func (r *Fetcher) Size(id objectid.ObjectID) (int64, error) {
+ return r.store.ReadSize(id)
+}