This is interesting, but really needs to be taken a bit further. For example, the commit <a href="https://github.com/Br3nda/legislation/commit/ed9e389c5573c98ce8e3b7a3a07c614469303da4" rel="nofollow">https://github.com/Br3nda/legislation/commit/ed9e389c5573c98...</a> adds the <i>Animal Welfare Treatment of Animals Amendment Bill</i> - but the effect of this Bill is actually to amend the <i>Animal Welfare Act 1999</i>. In other words, this Bill is a legal patch, so it should probably be shown as a git branch that contains a commit modifying the <i>Animal Welfare Act 1999</i> as well as adding the Amendment bill.<p>As a sidebar, it's interesting that the <i>Statute of Marlborough (1267)</i> is still in force in NZ.
Legislation has some similarities to source commits, in that many Acts amend other Acts. Something like: <i>section 3: amend section 4(i) of the so-and-so Act 1958, replacing each occurrence of word A with word B.</i><p>It would be nice to store that <i>as</i> git commits, and have the functionality of diff, blame etc.<p>However, the dependence on the existing format, in terms of case-law, legislation, techniques for handling it, textbooks, articles, not to mention the decades of experience of solicitors, barristers, judges and legislators, make this hard to change. Back-compatibility is important. So the way to do it is to include the present format as meta-information.
While cool, note that this seems to be both incomplete and not up to date. The full list can be viewed with a search like <a href="http://www.legislation.govt.nz/all/results.aspx?search=ta_all%40act%40regulation_" rel="nofollow">http://www.legislation.govt.nz/all/results.aspx?search=ta_al...</a> and the results are easily spidered - I did it a few years ago and ended up with ~5000 files totalling ~375MB.
I keep wondering why all legislation isn't done in a git-like format. It really seems to be the best platform for being able to attribute and track changes on complex text documents with a large body of contributors.
Since we are already talking about legislation, how good/bad of a climate does New Zealand's law present for entrepreneurs? Asking because I have been fascinated with the country ever since (and also with it being almost the opposite part of earth when you're from Germany it's the farthest you can possibly get away from home for a change ;-).<p>So, any Kiwis around to give some insights?
There exists something similar for the German law:<p><a href="https://github.com/bundestag/gesetze" rel="nofollow">https://github.com/bundestag/gesetze</a><p>Fully converted to markdown and the best:<p><pre><code> You are encouraged to open pull request.
Of course only valid legislation voted on by the
Bundestag will be merged.</code></pre>
Can someone shed some light on the xml format being used here? Is there a standard parser, or something that would make it more human-readable? I'd love it all to be Marked-down.