aboutsummaryrefslogtreecommitdiff
path: root/object/storer/memory/algorithm.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-25 14:34:50 +0000
committerGravatar Runxi Yu2026-03-25 14:34:50 +0000
commite4a7aa0742f5070299d37e8421c99d67f0af3f90 (patch)
tree36d89781476a92e61280c5ff232a2773e4092c0e /object/storer/memory/algorithm.go
parent*: delta -> packfile/delta (diff)
signatureNo signature
*: object/store -> object/storer v0.1.107
Diffstat (limited to 'object/storer/memory/algorithm.go')
-rw-r--r--object/storer/memory/algorithm.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/object/storer/memory/algorithm.go b/object/storer/memory/algorithm.go
new file mode 100644
index 00000000..bf7f3a82
--- /dev/null
+++ b/object/storer/memory/algorithm.go
@@ -0,0 +1,8 @@
+package memory
+
+import objectid "codeberg.org/lindenii/furgit/object/id"
+
+// Algorithm returns the object ID algorithm used by the store.
+func (store *Store) Algorithm() objectid.Algorithm {
+ return store.algo
+}