That'd be great. Each commit would be pushed by the attesting legislator and they could even put the corporate lobbyist that actually wrote the change in the author field!
"The Senate hearing over controversial bill 4ad57b ..."
Ha! That'd be a nice side effect this approach.
Taking the concept one step further, there should be a CI environment to test out new laws.
And no, one does not simply suggest to a business person (or politician) that they should learn "markdown" or LaTeX...because reasons.
When you can push your own (or your sponsors') interests in relative secrecy, transparency is anathema.