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

APIs for automatic patch generation

From
MEMarkus Elfring <markus.elfring@web.de>
Date
Feb 20, 2010, 19:40 UTC
Message-ID
<4B803AB8.30304@web.de>
Hello,

I would like to generate patches in the Git format for some other software automatically. Which application programming interfaces do you recommend for this purpose if I am going to integrate this into a small C++ class library? http://www.kernel.org/pub/software/scm/git/docs/v1.7.0/technical/api-index.html http://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools

Specific use cases:
- Which functions or commands should I call to retrieve the required
informations for a line like "index 8d16832..358c98b 100644"?
- Can any functions help to construct proper range specifications for
difference hunks?

Regards, Markus

Next: Markus Elfring
Message 1 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.