Use commit summaries instead of full messages

This commit is contained in:
Chris Lee 2014-04-27 06:46:03 +00:00
parent 1b734501bd
commit 8a8f84d245
3 changed files with 4 additions and 4 deletions

View file

@ -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