libgit2/libgit2 — pull request #1072 by arrbee (2012-11-15 07:35:09+00:00)
Title: Diff API signatures

This fixes the `git_diff` related APIs to be more consistent with the parameter ordering used elsewhere in the public APIs of the library.

Additionally, this fixes the diff APIs that operate on the index and the `git_checkout_index` API to all take an explicit `git_index` object (and to fall back on the repository index if it is passed as NULL). Doing this involved updating the internal iterator API so index iterators could be created directly for a `git_index` instead of always getting the index from the repository.