Closed vmx closed 5 years ago
With "removing original
" I meant that instead of having author/original
there, it would just be author
.
It was a hack to be sure that serializing preserved the original formatting (which can be weird sometimes)
Just having author
sounds fine.
It's removed in the most recent release.
The
author
resolves a field calledoriginal
according to thetree()
method: https://github.com/ipld/js-ipld-git/blob/784c464ac08a52d06b20a964b8fd260a74cabd71/src/resolver.js#L12When you resolve it, it just return the full
author
object and hasoriginal
asremainderPath
. So it doesn't actually resolveoriginal
.When I look at the Go version, it also doesn't have the
original
field:https://github.com/ipfs/go-ipld-git/blob/480e59baae911caf7e0d8f5eb38d169b772564e8/commit.go#L70
@magik6k Do you know where it comes from?
I'm asking as I currently for on the IPLD Format cleanup and while I do that, I would just remove
original
from thetree()
fields.