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

Re: Regarding GIT API

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Feb 15, 2011, 11:21 UTC
Message-ID
<AANLkTi=eSsxTj4V25a9Lk75NfDZ5S5Ag8A-_mLUQ8dEF@mail.gmail.com>
In-Reply-To
<loom.20110215T120434-373@post.gmane.org>
On Tue, Feb 15, 2011 at 12:08 PM, Abhinav Goyal <honeykool23@gmail.com> wrote:
Show 9 quoted lines
> hello All,
>
> I searched a lot but all in vain to find GIT API from which I can call
> git commands from my C++ Application. I tried my hands on libgit2 but found that
> it deals with very low level git functionality .I just need the git command
> support for my C++ application. I have my own reason for not using command
> prompt system call. Please help me if you have any idea regarding API that I can
> use.
>

Git's API is constructed through calling the plumbing commands, not by calling C/C++ functions. If you want an example of how to do that, you could look at the git-cheetah source code: http://repo.or.cz/w/git-cheetah.git

LibGit2 is the most complete alternative for C/C++ to my knowledge.
Previous: Abhinav GoyalNext: Marc Weber
Message 2 of 6 in “Regarding GIT API”
  1. Abhinav GoyalFeb 15, 2011
  2. Erik Faye-LundFeb 15, 2011
  3. Marc WeberFeb 15, 2011
  4. Dmitry PotapovFeb 15, 2011
  5. Michael J GruberFeb 15, 2011
  6. Dmitry PotapovFeb 15, 2011

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.