git ssb

16+

Dominic / patchbay



Commit 8212081d31da69a5c2c3a831487c043c95a69768

Render info about git commits

Charles Lehner committed on 8/27/2016, 7:52:42 AM
Parent: 3e6a0dc32fcfbe12e6fe6d56679d8bd4687ca841

Files changed

modules/git.jschanged
modules/git.jsView
@@ -224,8 +224,18 @@
224224 return h('li',
225225 shortRefName(ref) + ': ',
226226 rev ? h('code', rev) : h('em', 'deleted'))
227227 })) : 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,
228238 Array.isArray(c.issues) ? c.issues.map(function (issue) {
229239 if (issue.merged === true)
230240 return ['Merged ', message_link(issue.link), ' in ',
231241 h('code', issue.object), ' ', h('q', issue.label)]

Built with git-ssb-web