aboutsummaryrefslogtreecommitdiff
path: root/object/id/algorithm.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-05-24 11:07:16 +0000
committerGravatar Runxi Yu2026-05-24 11:09:59 +0000
commit36340918040627d93808c09dea8d9bd7b7457f82 (patch)
treedab5fa0edbf2f2bf315d1fda73c0f7ac5c8fc6d9 /object/id/algorithm.go
parentinternal/testgit: Add Algorithm method (diff)
signatureNo signature
object/id: Rename algorithm to object format
Diffstat (limited to 'object/id/algorithm.go')
-rw-r--r--object/id/algorithm.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/object/id/algorithm.go b/object/id/algorithm.go
deleted file mode 100644
index efe5f4c5..00000000
--- a/object/id/algorithm.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package id
-
-// Algorithm identifies the hash algorithm used for Git object IDs.
-type Algorithm uint8
-
-const (
- // AlgorithmUnknown identifies an unknown object ID hash algorithm.
- AlgorithmUnknown Algorithm = iota
-
- // AlgorithmSHA1 identifies the SHA-1 object ID hash algorithm.
- // This is the default for all versions of Git until Git 3.0.
- AlgorithmSHA1
-
- // AlgorithmSHA256 identifies the SHA-256 object ID hash algorithm.
- // This is the default for Git 3.0 and beyond.
- AlgorithmSHA256
-)
-
-// SupportedAlgorithms returns all object ID algorithms supported by furgit.
-//
-// Labels: Mut-No.
-func SupportedAlgorithms() []Algorithm {
- return supportedAlgorithms
-}