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

Re: Git Library?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 28, 2008, 19:10 UTC
Message-ID
<alpine.DEB.1.00.0804282009310.19187@eeepc-johanness>
In-Reply-To
<5FCF765E-F3FF-438C-B4C1-FFB3262831A0@gmail.com>
Hi,
On Mon, 28 Apr 2008, Patrick Altman wrote:
> I want to write a Mac OSX UI for git.
> 
> Is there a documented/undocumented API for interacting with git in process?
> Or would I be better off "shelling out" to the git command line?

There was a mail thread yesterday on exactly the same subject. Bottom line: the recommended way is to fork()&&exec(), because I am sure you do not want to put in the work to make libgit.a reentrant.

Ciao, Dscho

Previous: Patrick AltmanNext: Jakub Narebski
Message 2 of 8 in “Git Library?”
  1. Patrick AltmanApr 28, 2008
  2. Johannes SchindelinApr 28, 2008
  3. Jakub NarebskiApr 28, 2008
  4. Patrick AltmanApr 28, 2008
  5. Jakub NarebskiApr 28, 2008
  6. David SymondsApr 28, 2008
  7. David AguilarApr 29, 2008
  8. David AguilarApr 29, 2008

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.