aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-24 09:32:30 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-24 09:32:30 -0400
commit1b3af2f6c692056b9fe59dcddb88eb445863cb93 (patch)
treefdff78e02c7e9a2fa8908f94ed82191023e5463f /routers/repo/commit.go
parent8aec5e16c4cb7fb045088b04781ef307558a33c3 (diff)
parent19de20c2f84d115a4cab405305f2676c839a9ac3 (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 60ee2177..e038998f 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -33,3 +33,9 @@ func Commits(ctx *middleware.Context, params martini.Params) {
ctx.Data["Commits"] = commits
ctx.HTML(200, "repo/commits")
}
+
+func Diff(ctx *middleware.Context,params martini.Params){
+ ctx.Data["Title"] = "commit-sha"
+ ctx.Data["IsRepoToolbarCommits"] = true
+ ctx.HTML(200,"repo/diff")
+}