aboutsummaryrefslogtreecommitdiff
path: root/repository/algorithm.go
diff options
context:
space:
mode:
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 == "" {