git ssb

16+

cel / patchfoo



Commit 7052ddce7a33724467c076dff4217c73001d4a8c

Use correct message ids in commit file diff links

cel committed on 1/10/2018, 8:02:17 AM
Parent: afc315b47e13e5a98eb37b9b56a0d36571d1c4a9

Files changed

lib/serve.jschanged
package-lock.jsonchanged
package.jsonchanged
lib/serve.jsView
@@ -1798,22 +1798,23 @@
17981798 ph('h4', 'files'),
17991799 ph('table', pull(
18001800 self.app.git.readCommitChanges(commit),
18011801 pull.map(function (file) {
1802 + var msg = file.msg || obj.msg
18021803 return ph('tr', [
18031804 ph('td', ph('code', u.escapeHTML(file.name))),
18041805 ph('td', file.deleted ? 'deleted'
18051806 : file.created ?
18061807 ph('a', {href:
18071808 self.app.render.toUrl('/git/blob/'
18081809 + (file.hash[1] || file.hash[0])
1809- + '?msg=' + encodeURIComponent(obj.msg.key))
1810 + + '?msg=' + encodeURIComponent(msg.key))
18101811 }, 'created')
18111812 : file.hash ?
18121813 ph('a', {href:
18131814 self.app.render.toUrl('/git/diff/'
18141815 + file.hash[0] + '..' + file.hash[1]
1815- + '?msg=' + encodeURIComponent(obj.msg.key))
1816 + + '?msg=' + encodeURIComponent(msg.key))
18161817 + '&commit=' + rev
18171818 + '&path=' + encodeURIComponent(file.name)
18181819 }, 'changed')
18191820 : file.mode ? 'mode changed'
package-lock.jsonView
@@ -1218,11 +1218,11 @@
12181218 "pull-stream": "3.6.1"
12191219 }
12201220 },
12211221 "ssb-git": {
1222- "version": "0.6.0",
1223- "resolved": "http://localhost:8989/blobs/get/&tz2WDecaYFjrKmRdZmLW9hu1DF7oYD+rNzAzaObqF5I=.sha256",
1224- "integrity": "sha256-tz2WDecaYFjrKmRdZmLW9hu1DF7oYD+rNzAzaObqF5I=",
1222 + "version": "0.7.0",
1223 + "resolved": "http://localhost:8989/blobs/get/&YaFMXaoXkA4IA5A2FkfPJ/u+8k+3k6MLuDm09yeShdg=.sha256",
1224 + "integrity": "sha256-YaFMXaoXkA4IA5A2FkfPJ/u+8k+3k6MLuDm09yeShdg=",
12251225 "requires": {
12261226 "asyncmemo": "1.1.0",
12271227 "hashlru": "http://localhost:8989/blobs/get/&EASZ1/L+jHuTVxrgbQrNlTdCenA8etAVuk/TGn92RoY=.sha256",
12281228 "looper": "4.0.0",
package.jsonView
@@ -28,9 +28,9 @@
2828 "pull-stream": "^3.5.0",
2929 "pull-utf8-decoder": "^1.0.2",
3030 "ssb-client": "http://localhost:8989/blobs/get/&EAaUpI+wrJM5/ly1RqZW0GAEF4PmCAmABBj7e6UIrL0=.sha256",
3131 "ssb-contact": "^1.2.0",
32- "ssb-git": "^0.6.0",
32 + "ssb-git": "^0.7.0",
3333 "ssb-marked": "^0.7.1",
3434 "ssb-mentions": "http://localhost:8989/blobs/get/&GjuxknqKwJqHznKueFNCyIh52v1woz5PB41vqmoHfyM=.sha256",
3535 "ssb-sort": "^1.0.0",
3636 "stream-to-pull-stream": "^1.7.2",

Built with git-ssb-web