MCPcopy
hub / github.com/sourcegraph/checkup / sha

Function sha

storage/github/github_test.go:46–48  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

44}
45
46func sha(data []byte) string {
47 return fmt.Sprintf("%x", sha1.Sum(data))
48}
49
50func pathForGitRepo(path string) string {
51 return strings.TrimPrefix(path, "/")

Callers 1

withGitHubServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected