diff options
| author | 2026-04-02 07:34:09 +0000 | |
|---|---|---|
| committer | 2026-04-02 07:34:09 +0000 | |
| commit | f805d0ba947e0aa39ca8040cf71b7e0fad3de919 (patch) | |
| tree | b683eb327f94a02a17c406631089fa1f8bc28b9a /object/id/algorithm.go | |
| parent | object/id: Add algorithm (diff) | |
| signature | No signature | |
object/id: Add algorithm stuff
Diffstat (limited to 'object/id/algorithm.go')
| -rw-r--r-- | object/id/algorithm.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/object/id/algorithm.go b/object/id/algorithm.go index 47a1b02a..1b02cbc4 100644 --- a/object/id/algorithm.go +++ b/object/id/algorithm.go @@ -5,7 +5,7 @@ type Algorithm uint8 const ( // AlgorithmUnknown identifies an unknown object ID hash algorithm. - AlgorithmUknown Algorithm = iota + 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. @@ -15,3 +15,9 @@ const ( // 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 +} |
