aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-16 08:47:57 +0800
committerGitHub <noreply@github.com>2019-11-16 08:47:57 +0800
commit11208f33818ae3fe2f32581285c358b5cfcf5992 (patch)
tree7c8766a17165d391e38b504ff62ecee27f28a04f /routers
parent69cfff15416d01feec6a45c0c6554481ba6f3c1f (diff)
downloadgitea-11208f33818ae3fe2f32581285c358b5cfcf5992.tar.gz
gitea-11208f33818ae3fe2f32581285c358b5cfcf5992.zip
Move git graph from models to modules/graph (#9027)
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/commit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 2a123a2eb9..084c495174 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -14,6 +14,7 @@ import (
"code.gitea.io/gitea/modules/charset"
"code.gitea.io/gitea/modules/context"
"code.gitea.io/gitea/modules/git"
+ "code.gitea.io/gitea/modules/gitgraph"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/services/gitdiff"
@@ -99,7 +100,7 @@ func Graph(ctx *context.Context) {
page := ctx.QueryInt("page")
- graph, err := models.GetCommitGraph(ctx.Repo.GitRepo, page)
+ graph, err := gitgraph.GetCommitGraph(ctx.Repo.GitRepo, page)
if err != nil {
ctx.ServerError("GetCommitGraph", err)
return