libgit2/libgit2 — pull request #941 by arrbee (2012-09-18 22:15:25+00:00)
Title: Create a diff patch object as an alternative to iterators

This is a proposed alternative to the `git_diff_iterator` APIs that would make the deltas in a diff addressable by index and add a `git_diff_patch` object that encapsulates all the text diffs for a given delta. The hunks and lines in the patch could also then be accessed by index.

This would replace the iterator API with something much simpler - just use an int to walk through a diff. It would still coexist with the `git_diff_foreach` API since that can be more memory efficient.