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

Re: Is there have development library or API for git ?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 25, 2008, 04:12 UTC
Message-ID
<20080825041217.GA19127@spearce.org>
In-Reply-To
<976e6d070808242109s53af2624td45dbb936ca25896@mail.gmail.com>
Sky Patrick <patricksky852@gmail.com> wrote:
> Is there have development library or API for git ? Thank ~

No. However you can look at jgit if you are programming in Java. In Ruby look up Grit (a wrapper around the plumbing commands), or the pure-Ruby implementation of Git (I forget its name).

Anything else, use the plumbing commands and just fork+exec what you need. Many of them have a -z flag to use null termination on records, making it easier (and safer) to slurp data that may contain LFs.

-- 
Shawn.
Previous: Sky PatrickNext: Scott Chacon
Message 2 of 3 in “Is there have development library or API for git ?”
  1. Sky PatrickAug 25, 2008
  2. Shawn O. PearceAug 25, 2008
  3. Scott ChaconAug 26, 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.