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

git, porcelain, darcs, and version 1.0

From
Bryan Larsen <bryan.larsen@gmail.com>
Date
Jul 18, 2005, 04:46 UTC
Message-ID
<42DB341D.6050506@gmail.com>
In-Reply-To
<7islyev5s4.fsf@lanthane.pps.jussieu.fr>
Juliusz Chroboczek wrote:
Show 5 quoted lines
> There are three ways to do that:
> 
>   (1) require that the users put a suitable libgit.a in /usr/local/lib
>       before building Darcs, and distribute a tarball of Git from
>       darcs.net;

I was under the impression that the stablest interface to git was the command line; we use spawnvp in stacked git. I've been using it with repositories that make the Linux kernel look small.

I certainly don't think the lib interface is anywhere near stable: Linus accepted my change to index_fd far too easily.

 >
 >   (2) include just the sources needed for libgit.a in Darcs, and have
 >       the Darcs build build a local libgit
 >
 >   (3) as (2), but include all of Git, including their
 >       ``user-friendly'' scripts.

Ugh. That's what they do in the commercial world. We have it so much better here in Linux & BSD land: you just add a "depends libgit1" line to your package, and the right thing happens: minor updates happen automatically and changes that break the interface don't. Of course, keeping it that easy for the user requires active effort from us, the developers, and sometimes the pain spills over, but the benefits are nice.

I see too major long-term alternatives:
1) talk the darcs guys into using spawnvp
2) talk the git people into exporting a stable lib interface

It's my opinion that #1 is a non-starter. We want others to interact with us. I'm going to use spawnvp for my porcelain, but we should be inclusive.

The current 'libgit' probably contains more than Linus and Junio are comfortable locking down as a stable interface, but I'm sure that there's a subset that they'd be comfortable with once a relative amount of stability is achieved, or it may be achievable via some other method.

I propose that Darcs includes all of git for now. (I prefer this over partial inclusion; anybody should be able to take the darcs sources and easily drop in a later git). However, the long term goal is for a library. Darcs and git work together to determine the minimal amount that needs to go into libgit1.so. It gets blessed by being documented, and doesn't change until libgit2.so.

I'd like to see this added to Junio's list of "1.0" goals.

A similar 1.0 goal would be to document porcelain's use of the .git directory. For instance, stacked git uses .git/patches, .git/patchdescr.tmpl and .git/patchexport.tmpl. If Linus does not accept a patch documenting this usage, stacked git should use .stgit instead.

Bryan
Previous: David RoundyNext: Junio C Hamano
Message 3 of 7 in “Darcs-Git: upgrading to Git 0.99”
  1. Juliusz ChroboczekJul 16, 2005
  2. David RoundyJul 17, 2005
  3. git, porcelain, darcs, and version 1.0Bryan Larsen, Jul 18, 2005
  4. Junio C HamanoJul 18, 2005
  5. Bryan LarsenJul 18, 2005
  6. Juliusz ChroboczekJul 18, 2005
  7. Bryan LarsenJul 18, 2005

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.