aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 316709e..99c4ddf 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -32,8 +32,8 @@ RenderMsg.prototype.toUrl = function (href) {
return this.render.toUrl(href)
}
-RenderMsg.prototype.linkify = function (text) {
- return this.render.linkify(text)
+RenderMsg.prototype.linkify = function (text, opts) {
+ return this.render.linkify(text, opts)
}
RenderMsg.prototype.raw = function (cb) {
@@ -749,8 +749,9 @@ RenderMsg.prototype.gitUpdate = function (cb) {
var path = id && ('/git/' + type + '/' + encodeURIComponent(id)
+ '?msg=' + encodeURIComponent(self.msg.key))
+ '&search=1'
+ var name = ref.replace(/^refs\/(heads|tags)\//, '')
return h('li',
- ref.replace(/^refs\/(heads|tags)\//, ''), ': ',
+ self.linkify(name, {ellipsis: true}), ': ',
id ? h('a', {href: self.render.toUrl(path)}, h('code', id))
: h('em', 'deleted'))
})) : '',