git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: APIs for automatic patch generation

From
MEMarkus Elfring <markus.elfring@web.de>
Date
Dec 13, 2010, 16:00 UTC
Message-ID
<4D06431E.5020906@web.de>
In-Reply-To
<4B840AA2.3010604@web.de>
> 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

Previous: Sverre Rabbelier
Message 6 of 6 in “APIs for automatic patch generation”
  1. Markus ElfringFeb 20, 2010
  2. Markus ElfringFeb 23, 2010
  3. Sverre RabbelierFeb 23, 2010
  4. Markus ElfringFeb 23, 2010
  5. Sverre RabbelierFeb 23, 2010
  6. Markus ElfringDec 13, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.