summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-23 23:46:49 +0800
committerUnknwon <u@gogs.io>2016-07-23 23:46:49 +0800
commit256cd6374adf646a46265efe18a2d3f822bf7269 (patch)
tree159364ec8a6edc50442a2dfe59825140db30d277
parent57a47bbc0544757bd6f98d0a565e5309c8f670a0 (diff)
downloadgitea-256cd6374adf646a46265efe18a2d3f822bf7269.tar.gz
gitea-256cd6374adf646a46265efe18a2d3f822bf7269.zip
#2790 fix not detect diff style in pull request file changes
-rw-r--r--routers/repo/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 2c534f1e03..01a5102f7e 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -372,6 +372,7 @@ func ViewPullFiles(ctx *context.Context) {
}
headTarget := path.Join(pull.HeadUserName, pull.HeadRepo.Name)
+ ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split"
ctx.Data["Username"] = pull.HeadUserName
ctx.Data["Reponame"] = pull.HeadRepo.Name
ctx.Data["IsImageFile"] = commit.IsImageFile