aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-18 21:00:57 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-02-18 21:00:57 -0500
commit491f0f53a3c4ea57411a5099db831d8687d7e7ea (patch)
tree213157b76f630500be3485ca244a98ee892ef29e /lib/render-msg.js
parentff3840ae638b77832ccd9dede4052434334d82b1 (diff)
downloadpatchfoo-491f0f53a3c4ea57411a5099db831d8687d7e7ea.tar.gz
patchfoo-491f0f53a3c4ea57411a5099db831d8687d7e7ea.zip
Show git commit bodies
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 444f1c0..fd3e7e2 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -375,7 +375,10 @@ RenderMsg.prototype.gitUpdate = function (cb) {
h('ul', self.c.commits.map(function (commit) {
return h('li',
h('code', String(commit.sha1).substr(0, 8)), ' ',
- commit.title)
+ commit.title,
+ commit.body ? h('div',
+ {innerHTML: self.render.markdown('\n' + commit.body)}) : ''
+ )
})) : ''
), cb)
})