# Builtin-clone?

3 messages from 2008-02-19 to 2008-02-19. Participants: Daniel Barkalow, Johan Herland, Kristian Høgsberg.
Thread: https://gitlist.dev/t/12190

## Daniel Barkalow, 2008-02-19 05:30

Subject: Builtin-clone?
Message-ID: <alpine.LNX.1.00.0802182341430.5816@iabervon.org>
URL: https://gitlist.dev/e/alpine.LNX.1.00.0802182341430.5816%40iabervon.org

```
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? 

	-Daniel
*This .sig left intentionally blank*

```

## Johan Herland, 2008-02-19 07:08

Subject: Re: Builtin-clone?
Message-ID: <200802190808.33611.johan@herland.net>
URL: https://gitlist.dev/e/200802190808.33611.johan%40herland.net
In-Reply-To: <alpine.LNX.1.00.0802182341430.5816@iabervon.org>

```
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/

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...


Have fun! :)

...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net

```

## Kristian Høgsberg, 2008-02-19 16:02

Subject: Re: Builtin-clone?
Message-ID: <1203436952.32036.5.camel@gaara.boston.redhat.com>
URL: https://gitlist.dev/e/1203436952.32036.5.camel%40gaara.boston.redhat.com
In-Reply-To: <200802190808.33611.johan@herland.net>

```
On Tue, 2008-02-19 at 08:08 +0100, Johan Herland wrote:
> 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

```
