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

Method HasWiki

internal/database/wiki.go:63–65  ·  view source on GitHub ↗

HasWiki returns true if repository has wiki.

()

Source from the content-addressed store, hash-verified

61
62// HasWiki returns true if repository has wiki.
63func (r *Repository) HasWiki() bool {
64 return com.IsDir(r.WikiPath())
65}
66
67// InitWiki initializes a wiki for repository,
68// it does nothing when repository already has wiki.

Callers 8

InitWikiMethod · 0.95
runSyncMethod · 0.80
CleanUpMigrateInfoFunction · 0.80
SyncRepositoryHooksFunction · 0.80
WikiFunction · 0.80
WikiPagesFunction · 0.80
NewWikiFunction · 0.80
EditWikiFunction · 0.80

Implementers 2

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

Calls 1

WikiPathMethod · 0.95

Tested by

no test coverage detected