Subject: Re: APIs for automatic patch generation

From: Markus Elfring <[email-masked]>
Date: Mon, 13 Dec 2010 17:00:30 +0100

> The commands "git diff" and "git format-patch" contain functionality that I
> would like to reuse for my little application in a C++ class library.

Which functions exist in the recently published C API 
(http://libgit2.github.com/) that can provide the following data?
* a line like "index 8d16832..358c98b 100644"
* range specifications for difference hunks
* mail construction

Regards,
Markus