MCPcopy Create free account
hub / github.com/go-git/go-git / IsDelete

Method IsDelete

config/refspec.go:58–60  ·  view source on GitHub ↗

IsDelete returns true if the refspec indicates a delete (empty src).

()

Source from the content-addressed store, hash-verified

56
57// IsDelete returns true if the refspec indicates a delete (empty src).
58func (s RefSpec) IsDelete() bool {
59 return s[0] == refSpecSeparator[0]
60}
61
62// IsExactSHA1 returns true if the source is a SHA1 hash.
63func (s RefSpec) IsExactSHA1() bool {

Callers 3

PushContextMethod · 0.80
addReferencesToUpdateMethod · 0.80
TestRefSpecIsDeleteMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestRefSpecIsDeleteMethod · 0.64