libgit2/libgit2 — pull request #929 by arrbee (2012-09-13 20:19:15+00:00)
Title: Fix problems in diff iterator record chaining

There is a bug in building the linked list of line records in the diff iterator and also an off by one element error in the hunk counts. This fixes both of these, adds some test data with more complex sets of hunk and line diffs to exercise this code better.