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

Function discardLocalWikiChanges

internal/database/wiki.go:92–94  ·  view source on GitHub ↗
(localPath string)

Source from the content-addressed store, hash-verified

90}
91
92func discardLocalWikiChanges(localPath string) error {
93 return discardLocalRepoBranchChanges(localPath, WikiBranch(localPath))
94}
95
96// updateWikiPage adds new page to repository wiki.
97func (r *Repository) updateWikiPage(doer *User, oldTitle, title, content, message string, isNew bool) error {

Callers 2

updateWikiPageMethod · 0.85
DeleteWikiPageMethod · 0.85

Calls 2

WikiBranchFunction · 0.85

Tested by

no test coverage detected