diff options
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/repo/blame.go | 2 | ||||
-rw-r--r-- | routers/web/repo/commit.go | 2 | ||||
-rw-r--r-- | routers/web/repo/compare.go | 2 | ||||
-rw-r--r-- | routers/web/repo/pull.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go index eddfcab078..e79029a55e 100644 --- a/routers/web/repo/blame.go +++ b/routers/web/repo/blame.go @@ -97,7 +97,7 @@ func RefBlame(ctx *context.Context) { return } - ctx.Data["NumLines"], err = blob.GetBlobLineCount() + ctx.Data["NumLines"], err = blob.GetBlobLineCount(nil) if err != nil { ctx.NotFound(err) return diff --git a/routers/web/repo/commit.go b/routers/web/repo/commit.go index 997e9f6869..bbdcf9875e 100644 --- a/routers/web/repo/commit.go +++ b/routers/web/repo/commit.go @@ -314,7 +314,7 @@ func Diff(ctx *context.Context) { maxLines, maxFiles = -1, -1 } - diff, err := gitdiff.GetDiff(ctx, gitRepo, &gitdiff.DiffOptions{ + diff, err := gitdiff.GetDiffForRender(ctx, gitRepo, &gitdiff.DiffOptions{ AfterCommitID: commitID, SkipTo: ctx.FormString("skip-to"), MaxLines: maxLines, diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index d9c6305ce1..c1726d0790 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -614,7 +614,7 @@ func PrepareCompareDiff( fileOnly := ctx.FormBool("file-only") - diff, err := gitdiff.GetDiff(ctx, ci.HeadGitRepo, + diff, err := gitdiff.GetDiffForRender(ctx, ci.HeadGitRepo, &gitdiff.DiffOptions{ BeforeCommitID: beforeCommitID, AfterCommitID: headCommitID, diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index edbf399c77..9eb6917617 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -749,7 +749,7 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi diffOptions.BeforeCommitID = startCommitID } - diff, err := gitdiff.GetDiff(ctx, gitRepo, diffOptions, files...) + diff, err := gitdiff.GetDiffForRender(ctx, gitRepo, diffOptions, files...) if err != nil { ctx.ServerError("GetDiff", err) return |