Open magik6k opened 6 years ago
Currently big objects are added to directly ipfs with the header: https://github.com/magik6k/git-remote-ipld/blob/master/cmd/git-remote-ipld/ipld.go#L242
We could add just raw data, and then wrap it with an object with [blob/tree/*] [size]\0 and a link to the raw data.
[blob/tree/*] [size]\0
This would allow to deduplicate the data with other ipfs objects
Currently big objects are added to directly ipfs with the header: https://github.com/magik6k/git-remote-ipld/blob/master/cmd/git-remote-ipld/ipld.go#L242
We could add just raw data, and then wrap it with an object with
[blob/tree/*] [size]\0
and a link to the raw data.This would allow to deduplicate the data with other ipfs objects