git ssb

30+

cel / git-ssb-web



Commit 43dad83091a92312dae090491ec32afd06fc8de9

Add missing file

cel committed on 11/24/2017, 4:34:01 AM
Parent: 12cbbc0fcd92a745f0439eff6cad0263ed4a8fcc

Files changed

lib/obj-msg-id.jsadded
lib/obj-msg-id.jsView
@@ -1,0 +1,12 @@
1 +// get a id of a git-update message that includes a packfile that pushed the
2 +// given commit, or from which such a message may be reached by following
3 +// repoBranch links.
4 +module.exports = function (repo, commitId, cb) {
5 + // TODO: get packfile contents
6 + var msgsByObj = repo && repo._msgsByObject
7 + var msg = msgsByObj && msgsByObj[commitId]
8 + if (!msg) return cb()
9 + // TODO: examine index file to see if object is in there
10 + // but not mentioned in the message
11 + cb(null, msg.key)
12 +}

Built with git-ssb-web