diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-18 21:00:57 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-18 21:00:57 -0500 |
commit | 491f0f53a3c4ea57411a5099db831d8687d7e7ea (patch) | |
tree | 213157b76f630500be3485ca244a98ee892ef29e | |
parent | ff3840ae638b77832ccd9dede4052434334d82b1 (diff) | |
download | patchfoo-491f0f53a3c4ea57411a5099db831d8687d7e7ea.tar.gz patchfoo-491f0f53a3c4ea57411a5099db831d8687d7e7ea.zip |
Show git commit bodies
-rw-r--r-- | lib/render-msg.js | 5 |
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) }) |