Question: would it be possible to reconstruct a blob?
%pQMaCxZbY1HYdH3Y/M9oi1sSJxeW1+XQB2tOZJ4fX6o=.sha256
Question: would it be possible to reconstruct a blob?
I was trying to push to a git-ssb repo that I am pretty sure I had all the objects to already, but not as ssb blobs (it was %ssb-blobs, actually) Is there enough information to reconstruct a pack file instead of downloading it?
(am currently working on making blobs use less bandwidth, so thinking about things like this)
this might be possible. to reconstruct a packfile blob, you would need the git objects that went into it, their order (unless you reconstruct that using git's logic), and an assumption that git's packfile delta encoding and deflate compression are deterministic. this could be done with some git-update messages that include all the git object ids. some git-update messages don't include the object ids (as they would make the message too big), but they could be retrieved from the pack index blob, which is usually much smaller than the packfile blob.
it should also be possible to push to a repo without fetching packfile blobs from it if you don't need. there may be room for improvement there
Implemented in %dahDUJr...
Built with git-ssb-web