From 6cda35a75f346374121c1ba0ab08adf81dfdcead Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Tue, 16 Aug 2016 07:31:54 -0700
Subject: [PATCH] #3464 reproduce diff signs

---
 routers/repo/commit.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 0dc0ceba55..9cf339ecea 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -145,6 +145,7 @@ func FileHistory(ctx *context.Context) {
 
 func Diff(ctx *context.Context) {
 	ctx.Data["PageIsDiff"] = true
+	ctx.Data["RequireHighlightJS"] = true
 
 	userName := ctx.Repo.Owner.Name
 	repoName := ctx.Repo.Repository.Name
@@ -201,7 +202,6 @@ func Diff(ctx *context.Context) {
 		ctx.Data["BeforeSourcePath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "src", parents[0])
 	}
 	ctx.Data["RawPath"] = setting.AppSubUrl + "/" + path.Join(userName, repoName, "raw", commitID)
-	ctx.Data["RequireHighlightJS"] = true
 	ctx.HTML(200, DIFF)
 }