libgit2/libgit2 — pull request #1170 by nacho (2012-12-21 20:08:23+00:00)
Title: Introduce git_diff_blob_to_buffer

The use case for this is for example if you have a text editor and you want to diff the buffer against HEAD.

See that this is a some kind of suggestion as I do not have enough time to make the unit tests, but please consider something like this for inclusion.