diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-04-27 00:56:06 -0600 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-04-27 00:56:06 -0600 |
commit | 9fdf4bc2776f07774f6303536400858aa0bcb8aa (patch) | |
tree | 9f54c4603bc1e2a054a34f0557a3b2d5be024b3f /routers | |
parent | 59d0e73c3507296b31c8e741b44afc7bfe1eb695 (diff) | |
parent | 8a8f84d245ed7b5cd007b43747098663019654c7 (diff) | |
download | gitea-9fdf4bc2776f07774f6303536400858aa0bcb8aa.tar.gz gitea-9fdf4bc2776f07774f6303536400858aa0bcb8aa.zip |
Merge pull request #134 from clee/master
Use commit summaries instead of full messages
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 6e20a7b7f4..9ecc697d27 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -92,7 +92,7 @@ func Diff(ctx *middleware.Context, params martini.Params) { } ctx.Data["IsImageFile"] = isImageFile - ctx.Data["Title"] = commit.Message() + " · " + base.ShortSha(commitId) + ctx.Data["Title"] = commit.Summary() + " · " + base.ShortSha(commitId) ctx.Data["Commit"] = commit ctx.Data["Diff"] = diff ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0 |