blob: 1b02cbc4b860cc67c5dfbeaf081bf890ae8f090d (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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
}
|