Here's a script doing the same thing but with another text [1].
In this case, we're storing each version as plain text files and then we make the git repo by compiling all of them.
> And then how would you visualize the whole thing just to keep it straight in your head ?
Like this for example [2].
[1]: https://github.com/regardscitoyens/historique_reglements_AN/...
[2]: https://web.archive.org/web/20160315050131/http://visualisie...