MCPcopy Create free account
hub / github.com/celer-pkg/celer / CheckIsCommitHash

Function CheckIsCommitHash

pkgs/git/control.go:473–475  ·  view source on GitHub ↗

CheckIsCommitHash check if a valid git commit hash, booth short hash and long hash can be supported.

(hash string)

Source from the content-addressed store, hash-verified

471
472// CheckIsCommitHash check if a valid git commit hash, booth short hash and long hash can be supported.
473func CheckIsCommitHash(hash string) bool {
474 return commitHashPattern.MatchString(strings.TrimSpace(hash))
475}

Callers 1

UpdateRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected