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

Re: [PATCH 2/3 v2] Use an external program to implement fetching with curl

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 28, 2009, 15:03 UTC
Message-ID
<alpine.DEB.1.00.0907281658370.14706@intel-tinevez-2-302>
In-Reply-To
<40aa078e0907280630p7751c3d9m639e63e7700a8819@mail.gmail.com>
Hi,
On Tue, 28 Jul 2009, Erik Faye-Lund wrote:
Show 7 quoted lines
> On Tue, Jul 28, 2009 at 3:19 PM, Johannes
> Schindelin<Johannes.Schindelin@gmx.de> wrote:
> > If you already start some infrastructure like this, you should go the 
> > whole nine yards and make helper functions in remote.c or transport.c 
> > that help implementing "git-remote-<protocol>" helpers.
> 
> You mean helper-helpers? :)

Not really... I meant functions that do all the stdin parsing for you, together with error handling, and only return proper lists of verified arguments in the appropriate data structure. This functionality is likely to be needed by all remote helpers, that's why I would prefer to have it exposed as functions in libgit.a, to be reused by all the helpers.

Of course, this would not help shell scripting such helpers, but you have to start somewhere. And that somewhere happens to be the http transport.

Ciao, Dscho

Previous: Erik Faye-LundNext: Daniel Barkalow
Message 4 of 6 in “Use an external program to implement fetching with curl”
  1. 2/3 Use an external program to implement fetching with curlDaniel Barkalow, Jul 28, 2009
  2. Johannes SchindelinJul 28, 2009
  3. Erik Faye-LundJul 28, 2009
  4. Johannes SchindelinJul 28, 2009
  5. Daniel BarkalowJul 28, 2009
  6. Johannes SchindelinJul 29, 2009

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.