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

Re: Non-http dumb protocols

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Jul 1, 2007, 05:48 UTC
Message-ID
<Pine.LNX.4.64.0707010646461.22915@beast.quantumfyre.co.uk>
In-Reply-To
<7vbqewakz8.fsf@assigned-by-dhcp.cox.net>
On Sat, 30 Jun 2007, Junio C Hamano wrote:
Show 9 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> writes:
>
>> Do we actually support local-fetch and ssh-fetch/ssh-push any more? They
>> seem to me to have been entirely supplanted with respect to functionality
>> for a long time now, but the programs are still there. This complicates
>> http-fetch, because only one -fetch can be linked into a binary as
>> currently designed, and we may want to make http-fetch builtin at some
>> point. Can we remove the other dumb protocols and merge fetch.c into
>> http-fetch.c?
Show 15 quoted lines
> To be linked with the rest of git, I think the global symbols
> fetch.c has are named a little too generically, and they would
> need to be fixed first.  It may make sense to do the "backend
> descriptor" code restructure first _before_ linking anything
> with the rest of git.  We can rename main() in *-fetch.c to
> cmd_*_fetch() only for the ones that we choose to make built-in
> when the conversion is ready.
>
> Having said that, I have a feeling that many people do not build
> any of the commit walkers, and especially the http walker,
> because they have no need for dumb protocols, and libcurl-dev is
> just another piece of dependency they do not have to have.  If
> we were to do a built-in http-fetch, we also need to make sure
> it is done in such a way that people can choose to configure it
> out.

As part of making fetch a builtin, I also made http-fetch a builtin so that I reuse some of the code. When I did this it kept the same optional build status as the original separate program. Since Daniel based his work on mine, he should have this change too ... however I didn't do any renaming of symbols in builtin-http-fetch.c other than the minimum necessary to make it a builtin.

-- 
Julian

  ---
Taxes are going up so fast, the government is likely to price itself
out of the market.
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 6 in “Non-http dumb protocols”
  1. Daniel BarkalowJun 30, 2007
  2. Junio C HamanoJul 1, 2007
  3. Julian PhillipsJul 1, 2007
  4. Johannes SchindelinJul 1, 2007
  5. Daniel BarkalowJul 1, 2007
  6. Johannes SchindelinJul 1, 2007

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.