MCPcopy Create free account
hub / github.com/gogs/gogs / IsErrNoMergeBase

Function IsErrNoMergeBase

internal/gitutil/error.go:40–42  ·  view source on GitHub ↗

IsErrNoMergeBase returns true if the underlying error is git.ErrNoMergeBase.

(err error)

Source from the content-addressed store, hash-verified

38
39// IsErrNoMergeBase returns true if the underlying error is git.ErrNoMergeBase.
40func IsErrNoMergeBase(err error) bool {
41 return errors.Cause(err) == git.ErrNoMergeBase
42}

Callers 2

ParseCompareInfoFunction · 0.92
TestIsErrNoMergeBaseFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsErrNoMergeBaseFunction · 0.68