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

Re: Builtin-clone?

From
Kristian Høgsberg <krh@redhat.com>
Date
Feb 19, 2008, 16:02 UTC
Message-ID
<1203436952.32036.5.camel@gaara.boston.redhat.com>
In-Reply-To
<200802190808.33611.johan@herland.net>
On Tue, 2008-02-19 at 08:08 +0100, Johan Herland wrote:
Show 8 quoted lines
> On Tuesday 19 February 2008, Daniel Barkalow wrote:
> > I remember some discussion of what was still needed in order to make clone 
> > a trivial caller of init, config, fetch, and (optionally) checkout, and 
> > that there was still something. But has anyone actually written the bulk 
> > of builtin-clone.c?
> 
> I remember Kristian Høgsberg posted some WIP back in December:
> http://thread.gmane.org/gmane.comp.version-control.git/67915/

What Johan said :) I posted the patch in progress during the 1.5.4 freeze, and threatened to pick it up again in January after 1.5.4 was released. I haven't worked on it since, unfortunately. It does most of the option parsing and the local clone optimizations, but doesn't use fetch correctly (as Daniel points out in the thread above).

Daniel, I'm pretty sure you have a better understanding of the fetch and checkout side of clone, so if you want to take the patch and finish those parts, I'm fine with that.

> I recently sent him (and the list) an email asking about his progress (and - 
> once his work arrives - whether it's a good idea to make 'git clone' 
> produce packed refs), but I have yet to hear from him...

I think packed refs in clone sounds like a good idea, but my primary goal was really to just port it to C and avoid changes in behavior during that work.

cheers, Kristian

Previous: Johan Herland
Message 3 of 3 in “Builtin-clone?”
  1. Daniel BarkalowFeb 19, 2008
  2. Johan HerlandFeb 19, 2008
  3. Kristian HøgsbergFeb 19, 2008

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.