From 491f0f53a3c4ea57411a5099db831d8687d7e7ea Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 18 Feb 2017 21:00:57 -0500 Subject: Show git commit bodies --- lib/render-msg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) }) -- cgit v1.2.3