blob: c21e8fa7455eaeb738c26aedaad07b0c82b3145e (
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
24
25
|
package id
// ObjectFormat identifies the Git object format,
// i.e., the hash algorithm used in git object IDs.
type ObjectFormat uint8
const (
// ObjectFormatUnknown identifies an unknown object format.
ObjectFormatUnknown ObjectFormat = iota
// ObjectFormatSHA1 identifies the SHA-1 object format.
// This is the default for all versions of Git until Git 3.0.
ObjectFormatSHA1
// ObjectFormatSHA256 identifies the SHA-256 object format.
// This is the default for Git 3.0 and beyond.
ObjectFormatSHA256
)
// SupportedObjectFormats returns all object formats supported by furgit.
//
// Labels: Mut-No.
func SupportedObjectFormats() []ObjectFormat {
return supportedObjectFormats
}
|