MCPcopy
hub / github.com/go-git/go-git / IsExactSHA1

Method IsExactSHA1

config/refspec.go:63–65  ·  view source on GitHub ↗

IsExactSHA1 returns true if the source is a SHA1 hash.

()

Source from the content-addressed store, hash-verified

61
62// IsExactSHA1 returns true if the source is a SHA1 hash.
63func (s RefSpec) IsExactSHA1() bool {
64 return plumbing.IsHash(s.Src())
65}
66
67// Src returns the src side.
68func (s RefSpec) Src() string {

Callers 4

doCalculateRefsFunction · 0.80
isSupportedRefSpecMethod · 0.80

Calls 2

SrcMethod · 0.95
IsHashFunction · 0.92

Tested by 1