git ssb

30+

cel / git-ssb-web



Tree: ae7c8f32a4d51050bd9b6b9d07764f2b81665223

Files: ae7c8f32a4d51050bd9b6b9d07764f2b81665223 / lib / obj-msg-id.js

487 bytesRaw
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.
4module.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}
13

Built with git-ssb-web