aboutsummaryrefslogtreecommitdiff
path: root/object/fetch/size.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-31 03:02:16 +0000
committerGravatar Runxi Yu2026-03-31 03:02:16 +0000
commit49f93cd54dfa46c488875139499dad13f4cf61db (patch)
tree318fe6f7b0a2a4d42577fde04dae0294d6e84a7d /object/fetch/size.go
parentref/store: Simplify names (diff)
signatureNo signature
object/fetch: Cleanup and add header/size
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)
+}