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

Function IsErrRevisionNotExist

internal/gitutil/error.go:35–37  ·  view source on GitHub ↗

IsErrRevisionNotExist returns true if the underlying error is git.ErrRevisionNotExist.

(err error)

Source from the content-addressed store, hash-verified

33// IsErrRevisionNotExist returns true if the underlying error is
34// git.ErrRevisionNotExist.
35func IsErrRevisionNotExist(err error) bool {
36 return errors.Cause(err) == git.ErrRevisionNotExist
37}
38
39// IsErrNoMergeBase returns true if the underlying error is git.ErrNoMergeBase.
40func IsErrNoMergeBase(err error) bool {

Callers 6

renderWikiPageFunction · 0.92
editFilePostFunction · 0.92
UploadFilePostFunction · 0.92
setEditorconfigIfExistsFunction · 0.92
NotFoundMethod · 0.85

Calls

no outgoing calls

Tested by 1