Commit 7052ddce7a33724467c076dff4217c73001d4a8c
Use correct message ids in commit file diff links
cel committed on 1/10/2018, 8:02:17 AMParent: afc315b47e13e5a98eb37b9b56a0d36571d1c4a9
Files changed
lib/serve.js | changed |
package-lock.json | changed |
package.json | changed |
lib/serve.js | ||
---|---|---|
@@ -1798,22 +1798,23 @@ | ||
1798 | 1798 … | ph('h4', 'files'), |
1799 | 1799 … | ph('table', pull( |
1800 | 1800 … | self.app.git.readCommitChanges(commit), |
1801 | 1801 … | pull.map(function (file) { |
1802 … | + var msg = file.msg || obj.msg | |
1802 | 1803 … | return ph('tr', [ |
1803 | 1804 … | ph('td', ph('code', u.escapeHTML(file.name))), |
1804 | 1805 … | ph('td', file.deleted ? 'deleted' |
1805 | 1806 … | : file.created ? |
1806 | 1807 … | ph('a', {href: |
1807 | 1808 … | self.app.render.toUrl('/git/blob/' |
1808 | 1809 … | + (file.hash[1] || file.hash[0]) |
1809 | - + '?msg=' + encodeURIComponent(obj.msg.key)) | |
1810 … | + + '?msg=' + encodeURIComponent(msg.key)) | |
1810 | 1811 … | }, 'created') |
1811 | 1812 … | : file.hash ? |
1812 | 1813 … | ph('a', {href: |
1813 | 1814 … | self.app.render.toUrl('/git/diff/' |
1814 | 1815 … | + file.hash[0] + '..' + file.hash[1] |
1815 | - + '?msg=' + encodeURIComponent(obj.msg.key)) | |
1816 … | + + '?msg=' + encodeURIComponent(msg.key)) | |
1816 | 1817 … | + '&commit=' + rev |
1817 | 1818 … | + '&path=' + encodeURIComponent(file.name) |
1818 | 1819 … | }, 'changed') |
1819 | 1820 … | : file.mode ? 'mode changed' |
package-lock.json | ||
---|---|---|
@@ -1218,11 +1218,11 @@ | ||
1218 | 1218 … | "pull-stream": "3.6.1" |
1219 | 1219 … | } |
1220 | 1220 … | }, |
1221 | 1221 … | "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=", | |
1225 | 1225 … | "requires": { |
1226 | 1226 … | "asyncmemo": "1.1.0", |
1227 | 1227 … | "hashlru": "http://localhost:8989/blobs/get/&EASZ1/L+jHuTVxrgbQrNlTdCenA8etAVuk/TGn92RoY=.sha256", |
1228 | 1228 … | "looper": "4.0.0", |
package.json | ||
---|---|---|
@@ -28,9 +28,9 @@ | ||
28 | 28 … | "pull-stream": "^3.5.0", |
29 | 29 … | "pull-utf8-decoder": "^1.0.2", |
30 | 30 … | "ssb-client": "http://localhost:8989/blobs/get/&EAaUpI+wrJM5/ly1RqZW0GAEF4PmCAmABBj7e6UIrL0=.sha256", |
31 | 31 … | "ssb-contact": "^1.2.0", |
32 | - "ssb-git": "^0.6.0", | |
32 … | + "ssb-git": "^0.7.0", | |
33 | 33 … | "ssb-marked": "^0.7.1", |
34 | 34 … | "ssb-mentions": "http://localhost:8989/blobs/get/&GjuxknqKwJqHznKueFNCyIh52v1woz5PB41vqmoHfyM=.sha256", |
35 | 35 … | "ssb-sort": "^1.0.0", |
36 | 36 … | "stream-to-pull-stream": "^1.7.2", |
Built with git-ssb-web