[PATCH] Short-circuit git-clone-pack while cloning locally (take 2).

2005-07-06 Thread Junio C Hamano
When we are cloning a repository on a local filesystem, it is faster to just create a hard linkfarm of .git/object hierarchy and copy the .git/refs files. By default, the script uses the clone-pack method, but it can be told with the -l flag to do the hard linkfarm (falling back on recursive file

Re: [PATCH] Short-circuit git-clone-pack while cloning locally.

2005-07-06 Thread Junio C Hamano
> "LT" == Linus Torvalds <[EMAIL PROTECTED]> writes: LT> It would seem that you don't do anything at all for the non-local case. Oops. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH] Short-circuit git-clone-pack while cloning locally.

2005-07-06 Thread Linus Torvalds
On Wed, 6 Jul 2005, Junio C Hamano wrote: > > By invitation. > > > When we are cloning a repository on a local filesystem [...] Hmm.. Did you test the ssh case? > +case "$local_use,$is_local" in > +default,f) > + ;; It would seem that you don't do anything at all for the non

[PATCH] Short-circuit git-clone-pack while cloning locally.

2005-07-06 Thread Junio C Hamano
> "LT" == Linus Torvalds <[EMAIL PROTECTED]> writes: LT> Anyway, as mentioned, you can certainly do a local clone a lot faster with LT> "cp -rl" (and yes, I'll apply Junio's patch if he makes it available LT> against the new version, and adds a flag to make it conditional),... By invitation