MCPcopy
hub / github.com/git-lfs/git-lfs / verifyVersion

Function verifyVersion

lfs/pointer.go:154–166  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

152}
153
154func verifyVersion(version string) error {
155 if len(version) == 0 {
156 return errors.NewNotAPointerError(errors.New(tr.Tr.Get("Missing version")))
157 }
158
159 for _, v := range v1Aliases {
160 if v == version {
161 return nil
162 }
163 }
164
165 return errors.New(tr.Tr.Get("Invalid version: %s", version))
166}
167
168func decodeKV(data []byte) (*Pointer, error) {
169 kvps, exts, err := decodeKVData(data)

Callers 1

decodeKVFunction · 0.85

Calls 3

NewNotAPointerErrorFunction · 0.92
NewFunction · 0.92
GetMethod · 0.65

Tested by

no test coverage detected