mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Add file history page to the repository viewer.
This commit is contained in:
@@ -41,9 +41,7 @@ class WikiController extends ControllerBase {
|
||||
val git = Git.open(WikiUtil.getWikiRepositoryDir(owner, repository))
|
||||
|
||||
html.wikihistory(Some(page),
|
||||
JGitUtil.getCommitLog(git, "master")._1.filter { commit =>
|
||||
JGitUtil.getDiffs(git, commit.id).find(_.newPath == page + ".md").isDefined
|
||||
},
|
||||
JGitUtil.getCommitLog(git, "master", path = page + ".md")._1,
|
||||
JGitUtil.getRepositoryInfo(owner, repository, servletContext))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user