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

Method UpdateLocalWiki

internal/database/wiki.go:87–90  ·  view source on GitHub ↗

UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date.

()

Source from the content-addressed store, hash-verified

85
86// UpdateLocalWiki makes sure the local copy of repository wiki is up-to-date.
87func (r *Repository) UpdateLocalWiki() error {
88 wikiPath := r.WikiPath()
89 return UpdateLocalCopyBranch(wikiPath, r.LocalWikiPath(), WikiBranch(wikiPath), true)
90}
91
92func discardLocalWikiChanges(localPath string) error {
93 return discardLocalRepoBranchChanges(localPath, WikiBranch(localPath))

Callers 2

updateWikiPageMethod · 0.95
DeleteWikiPageMethod · 0.95

Implementers 2

Repositoryinternal/database/repo.go
mailerRepointernal/database/issue_mail.go

Calls 4

WikiPathMethod · 0.95
LocalWikiPathMethod · 0.95
UpdateLocalCopyBranchFunction · 0.85
WikiBranchFunction · 0.85

Tested by

no test coverage detected