This is interesting, but really needs to be taken a bit further. For example, the commit https://github.com/Br3nda/legislation/commit/ed9e389c5573c98... adds the Animal Welfare Treatment of Animals Amendment Bill - but the effect of this Bill is actually to amend the Animal Welfare Act 1999. 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 Animal Welfare Act 1999 as well as adding the Amendment bill.
As a sidebar, it's interesting that the Statute of Marlborough (1267) is still in force in NZ.
I completely agree. I'd love for somebody to maintain a repository that follows in parallel the real life of a bill. Introducing it to Parliament is like creating a branch, then debating and process can further amend the branch/bill, then passing the bill and submitting it for royal assent is like submitting a pull request.
I'm sick of 3-page bills whose entire purpose is to remove a word or two from existing legislation. A diff is a much more powerful tool of examining the impact of a bill.
Edit: "Aaron's Law" is a good example:
> —Section 1030(e)(6) of title 18, United States Code, is amended by striking "alter;" and inserting the following: "alter, but does not include access in violation of an agreement..."
Legislation has some similarities to source commits, in that many Acts amend other Acts. Something like: section 3: amend section 4(i) of the so-and-so Act 1958, replacing each occurrence of word A with word B.
It would be nice to store that as git commits, and have the functionality of diff, blame etc.
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 http://www.legislation.govt.nz/all/results.aspx?search=ta_al... 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.
The problem is not forking and making changes (although you will have trouble using your local version), the problem is making a pull request and having it accepted.
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 ;-).
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.
As a sidebar, it's interesting that the Statute of Marlborough (1267) is still in force in NZ.