git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Dmitry Potapov <dpotapov@gmail.com>
To: Paul Menzel <pm.debian@googlemail.com>
Cc: git@vger.kernel.org, Marc Oscar Singer <elf@synapse.com>,
	407722@bugs.debian.org
Subject: Re: status of libgit.a
Date: Sun, 7 Mar 2010 16:26:10 +0300	[thread overview]
Message-ID: <20100307132610.GE31105@dpotapov.dyndns.org> (raw)
In-Reply-To: <1267957655.3759.29.camel@mattotaupa>

On Sun, Mar 07, 2010 at 11:27:35AM +0100, Paul Menzel wrote:
> 
> could you please give an update on the status of libgit.a. For example
> cgit still could not be packaged yet for Debian [1] because of this bug
> [2].
> 
> cgit is used by a lot of projects out there, so I am wondering if the
> current libgit.a can be released in its current state.
> 
> By the way, is there a web site/page for libgit.a?

libgit.a has never been meant to use outside of Git. It was created just
to assist with the building process, and there is no clear defined API.
So, using libgit.a outside of Git is no different than copying source
files and using them in another project.

AFAIK, there is no plan to create a stable API for the existing libgit.a
Another project (libgit2) started some time ago to create a Git library
with a stable API, but it does not share much code with Git, and so far
it provides only basic functionality and has very few contributors, who
are also busy with other projects. So, in no way it can be considered as
a replacement of existing libgit.a.

On the other hand, libgit.a includes plumbing functions, which may be
considered as stable API. So, if cgit uses only those functions just to
avoid fork(), it makes sense; but it should be done carefully, because
libgit.a can call exit() on error. It may be not a problem for cgit, but
it is just another reason why libgit.a cannot be considered as a general
purpose library that provides Git functionality...


Dmitry

  parent reply	other threads:[~2010-03-07 13:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <499B3F65.8010109@synapse.com>
     [not found] ` <20090218091617.7805.qmail@2684cdd72f0ee9.315fe32.mid.smarden.org>
     [not found]   ` <499C40EA.6050108@synapse.com>
     [not found]     ` <20090219092446.23272.qmail@3b5a9fa637f270.315fe32.mid.smarden.org>
2010-03-07 10:27       ` status of libgit.a Paul Menzel
2010-03-07 12:18         ` Miklos Vajna
2010-03-07 14:27           ` Nguyen Thai Ngoc Duy
2010-03-07 13:26         ` Dmitry Potapov [this message]
2010-03-07 16:36         ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100307132610.GE31105@dpotapov.dyndns.org \
    --to=dpotapov@gmail.com \
    --cc=407722@bugs.debian.org \
    --cc=elf@synapse.com \
    --cc=git@vger.kernel.org \
    --cc=pm.debian@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).