Here's a EurActiv article that gives a bird's eye view of the subject of version control systems applied to legislation.
End-to-end verifiable anonymous voting
This one is better explained by Wikipedia. Here's the description of the simplest of such voting systems.
Here's the best implementation of inline comments until now.