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

Function RawDiff

internal/route/repo/commit.go:176–185  ·  view source on GitHub ↗
(c *context.Context)

Source from the content-addressed store, hash-verified

174}
175
176func RawDiff(c *context.Context) {
177 if err := c.Repo.GitRepo.RawDiff(
178 c.Params(":sha"),
179 git.RawDiffFormat(c.Params(":ext")),
180 c.Resp,
181 ); err != nil {
182 c.NotFoundOrError(gitutil.NewError(err), "get raw diff")
183 return
184 }
185}
186
187type userCommit struct {
188 User *database.User

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
NotFoundOrErrorMethod · 0.45

Tested by

no test coverage detected