aboutsummaryrefslogtreecommitdiff
path: root/repository/algorithm.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-28 13:07:55 +0000
committerGravatar Runxi Yu2026-03-28 13:07:55 +0000
commita4bbec5a9b01c48dcbfd13519e6bae7fcffec449 (patch)
tree612df31c4fd32c4c3271f2c1360f5593926e4f70 /repository/algorithm.go
parentrepository, README: Fix fetcher/resolver naming (diff)
signatureNo signature
repository: Unify docs
Diffstat (limited to 'repository/algorithm.go')
-rw-r--r--repository/algorithm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/repository/algorithm.go b/repository/algorithm.go
index 90ce188c..1098f0b8 100644
--- a/repository/algorithm.go
+++ b/repository/algorithm.go
@@ -7,6 +7,8 @@ import (
objectid "codeberg.org/lindenii/furgit/object/id"
)
+// detectObjectAlgorithm uses a repository's configuration to detect
+// the expected Object ID hashing algorithm.
func detectObjectAlgorithm(cfg *config.Config) (objectid.Algorithm, error) {
algoName := cfg.Lookup("extensions", "", "objectformat").Value
if algoName == "" {