summaryrefslogtreecommitdiffstats
path: root/models/wiki.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-30 20:45:55 -0500
committerUnknwon <u@gogs.io>2015-11-30 20:45:55 -0500
commit830d00066785d131413d1de11ce301bf1f0b818a (patch)
treedd22bc4ecc89692146776d335d08c04722650f3f /models/wiki.go
parent5d1f5f32d069ee58a9eb89072231d92dc9ec5f74 (diff)
downloadgitea-830d00066785d131413d1de11ce301bf1f0b818a.tar.gz
gitea-830d00066785d131413d1de11ce301bf1f0b818a.zip
finish wiki
Diffstat (limited to 'models/wiki.go')
-rw-r--r--models/wiki.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/wiki.go b/models/wiki.go
index fd84ce4457..7baf9f9453 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -73,6 +73,11 @@ func ToWikiPageName(name string) string {
return strings.Replace(name, "-", " ", -1)
}
+// WikiCloneLink returns clone URLs of repository wiki.
+func (repo *Repository) WikiCloneLink() (cl *CloneLink) {
+ return repo.cloneLink(true)
+}
+
// WikiPath returns wiki data path by given user and repository name.
func WikiPath(userName, repoName string) string {
return filepath.Join(UserPath(userName), strings.ToLower(repoName)+".wiki.git")