First, let me explain my use case :
Assume that I want to deal with documents (which are stored in a folder for example).
So, I add my documents in IPFS, then I publish the hash to IPNS.
In this case, the new version of my documents will be reachable through IPNS, and the previous still remains in IPFS but I can’t retrieve it using my IPNS PeerID.
So, what I want to do is to keep tracking all previous versions to be able to return to a previous version (such as Git allows you to do it).
My question is :
How to create a history of my versioned documents and be able to return to a certain version ?
Is there a system as described above in IPFS ?
If not , what I suggest :
- make a basic hash-chain with added metadata such as timestamp, version number…
- implement a Git-style versioning (but I am not really comfortable with because I don’t know how it works but Git book should help)
I already read the following, but I haven’t found what I want :