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

Re: using git directory cache code in darcs?

From
Junio C Hamano <junkio@cox.net>
Date
Apr 17, 2005, 23:23 UTC
Message-ID
<7vvf6lugw7.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4262E50C.2070006@lazy.shacknet.nu>
>>>>> "NA" == Nomad Arton <lkml@lazy.shacknet.nu> writes:
NA> Linus Torvalds schrieb:
>> In fact, one of my hopes was that other SCM's could just use the git
>> plumbing. But then I'd really suggest that you use "git" itself, not any
>> "libgit". Ie you take _all_ the plumbing as real programs, and instead of
>> trying to link against individual routines, you'd _script_ it.

NA> please excuse; libgit and scripting to me arent a contradiction. many NA> sripting languages are extended by C modules, while still happening to NA> have all the scripting rapidity. its just a matter of how to NA> communicate with the C code, isnt it?

You are arguing for scripting language binding like what Swig creates. While that would also be a worthy addition, having language binding is not the only way to do _script_.

What Linus is saying is that he wants you to talk with git plumbing by invoking the executables he have, via system(3), popen(3), etc.

The C-level first has to be libified before you can start talking about host language bindings but that just started to happen and is not ready yet. However, you can use and benefit from GIT without waiting for that kind of integration, if you use the "spawning the executables" approach. I agree with him.

Previous: Nomad ArtonNext: Paul Jackson
Message 9 of 14 in “using git directory cache code in darcs?”
  1. David RoundyApr 16, 2005
  2. Ingo MolnarApr 16, 2005
  3. Junio C HamanoApr 16, 2005
  4. Linus TorvaldsApr 16, 2005
  5. David RoundyApr 17, 2005
  6. Linus TorvaldsApr 17, 2005
  7. Mike TahtApr 17, 2005
  8. Nomad ArtonApr 17, 2005
  9. Junio C HamanoApr 17, 2005
  10. Paul JacksonApr 18, 2005
  11. Paul JacksonApr 18, 2005
  12. Linus TorvaldsApr 18, 2005
  13. Paul JacksonApr 18, 2005
  14. git optionsMike Taht, Apr 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.