diff options
author | Cherrg <michael@gnehr.de> | 2019-07-11 16:45:10 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-07-11 22:45:10 +0800 |
commit | a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a (patch) | |
tree | f182ede1617c092badb4feff1c5b2e3edcf70352 /routers/repo | |
parent | a0820e09fbf78f84722b44563b5f44a92a8a5a0e (diff) | |
download | gitea-a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a.tar.gz gitea-a7b1ba0e3d49e699ce7d6e614bc8605aef0a2c9a.zip |
wiki history improvements (#7391)
* add history comments to detect page delete
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix too much history entries
- caused by --follow flag
- if files with same contents exists
Signed-off-by: Michael Gnehr <michael@gnehr.de>
* style imprevements wiki
- history - wrap long author names
Signed-off-by: Michael Gnehr <michael@gnehr.de>
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/wiki.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/wiki.go b/routers/repo/wiki.go index 0fdf853630..0d965f2183 100644 --- a/routers/repo/wiki.go +++ b/routers/repo/wiki.go @@ -248,9 +248,9 @@ func renderRevisionPage(ctx *context.Context) (*git.Repository, *git.TreeEntry) } // get Commit Count - commitsHistory, err := wikiRepo.CommitsByFileAndRange("master", pageFilename, page) + commitsHistory, err := wikiRepo.CommitsByFileAndRangeNoFollow("master", pageFilename, page) if err != nil { - ctx.ServerError("CommitsByFileAndRange", err) + ctx.ServerError("CommitsByFileAndRangeNoFollow", err) return nil, nil } commitsHistory = models.ValidateCommitsWithEmails(commitsHistory) |