threads / discuss / 15194

Is there have development library or API for git ?

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

## tl;dr

3 messages between Aug 25, 2008 and Aug 26, 2008.

replies: 2people: 3as markdown or json

Shawn O. Pearce· Aug 25, 2008, 04:12 UTC · re: Sky Patrick · lore

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

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.
Scott Chacon· Aug 26, 2008, 18:48 UTC · re: Shawn O. Pearce · lore

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

The Ruby library Grit actually does a lot of stuff in pure ruby rather than forking, but you also might want to take a look at libgitcore:

http://git.codethink.co.uk/?p=git;a=shortlog;h=libgitcore

The codethink guys have stripped and rewritten a bunch of git to behave more like a linkable library, and I think they have a python binding as an example.

Scott
On Sun, Aug 24, 2008 at 9:12 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 19 quoted lines
> 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.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

← back to recent threads