MCPcopy
hub / github.com/cli/cli / isCommit

Function isCommit

pkg/cmd/browse/browse.go:353–355  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

351var commitHash = regexp.MustCompile(`\A[a-f0-9]{7,64}\z`)
352
353func isCommit(arg string) bool {
354 return commitHash.MatchString(arg)
355}
356
357// gitClient is used to implement functions that can be performed on both local and remote git repositories
358type gitClient interface {

Callers 2

NewCmdBrowseFunction · 0.85
parseSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected