Commit 8212081d31da69a5c2c3a831487c043c95a69768
Render info about git commits
Charles Lehner committed on 8/27/2016, 7:52:42 AMParent: 3e6a0dc32fcfbe12e6fe6d56679d8bd4687ca841
Files changed
modules/git.js | changed |
modules/git.js | ||
---|---|---|
@@ -224,8 +224,18 @@ | ||
224 | 224 | return h('li', |
225 | 225 | shortRefName(ref) + ': ', |
226 | 226 | rev ? h('code', rev) : h('em', 'deleted')) |
227 | 227 | })) : null, |
228 | + Array.isArray(c.commits) ? [ | |
229 | + h('ul', c.commits.map(function (commit) { | |
230 | + return h('li', | |
231 | + typeof commit.sha1 === 'string' ? | |
232 | + [h('code', commit.sha1.substr(0, 8)), ' '] : null, | |
233 | + commit.title ? | |
234 | + h('q', commit.title) : null) | |
235 | + }), | |
236 | + c.commits_more ? h('li', '+ ' + c.commits_more + ' more') : null) | |
237 | + ] : null, | |
228 | 238 | Array.isArray(c.issues) ? c.issues.map(function (issue) { |
229 | 239 | if (issue.merged === true) |
230 | 240 | return ['Merged ', message_link(issue.link), ' in ', |
231 | 241 | h('code', issue.object), ' ', h('q', issue.label)] |
Built with git-ssb-web