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

Method IsForceUpdate

config/refspec.go:53–55  ·  view source on GitHub ↗

IsForceUpdate returns if update is allowed in non fast-forward merges.

()

Source from the content-addressed store, hash-verified

51
52// IsForceUpdate returns if update is allowed in non fast-forward merges.
53func (s RefSpec) IsForceUpdate() bool {
54 return s[0] == refSpecForce[0]
55}
56
57// IsDelete returns true if the refspec indicates a delete (empty src).
58func (s RefSpec) IsDelete() bool {

Callers 6

SrcMethod · 0.95
PushContextMethod · 0.80
addCommitMethod · 0.80

Calls

no outgoing calls

Tested by 1