git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there have development library or API for git ?
       [not found] <976e6d070808242025n24b282dei5c79b4c9bf2e390e@mail.gmail.com>
@ 2008-08-25  4:09 ` Sky Patrick
  2008-08-25  4:12   ` Shawn O. Pearce
  0 siblings, 1 reply; 3+ messages in thread
From: Sky Patrick @ 2008-08-25  4:09 UTC (permalink / raw)
  To: git

Hi,

Is there have development library or API for git ? Thank ~

Regards,
Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there have development library or API for git ?
  2008-08-25  4:09 ` Is there have development library or API for git ? Sky Patrick
@ 2008-08-25  4:12   ` Shawn O. Pearce
  2008-08-26 18:48     ` Scott Chacon
  0 siblings, 1 reply; 3+ messages in thread
From: Shawn O. Pearce @ 2008-08-25  4:12 UTC (permalink / raw)
  To: Sky Patrick; +Cc: 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Is there have development library or API for git ?
  2008-08-25  4:12   ` Shawn O. Pearce
@ 2008-08-26 18:48     ` Scott Chacon
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Chacon @ 2008-08-26 18:48 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Sky Patrick, 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:
> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-26 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <976e6d070808242025n24b282dei5c79b4c9bf2e390e@mail.gmail.com>
2008-08-25  4:09 ` Is there have development library or API for git ? Sky Patrick
2008-08-25  4:12   ` Shawn O. Pearce
2008-08-26 18:48     ` Scott Chacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).