On 2014-10-16 17:26, Marc Branchaud wrote:
I just don't see what difference the --borrow option makes. Consider the two
cases:
With just --reference=/local/pool/linux.git:
1. Set up the alternates file with that path.
x. Fetch object from origin not present in pool
Junio C Hamano writes:
> Marc Branchaud writes:
>
>> I think things would be more understandable if the option was "--dissociate
>> " and was an explicit alternative to --reference:
>> [[--reference | --dissociate] ]
>>
>> I'm still not liking the name "--dissociate" though. The original s
On 14-10-15 05:50 PM, Junio C Hamano wrote:
> Marc Branchaud writes:
>
>> Yes, but we're cloning gko, not the neighbour. Doesn't that mean that the
>> clone operation won't know about any of the neighbour's refs?
>
> No. --reference (and a natural implementation of --borrow, I would imagine)
>
Marc Branchaud writes:
> Yes, but we're cloning gko, not the neighbour. Doesn't that mean that the
> clone operation won't know about any of the neighbour's refs?
No. --reference (and a natural implementation of --borrow, I would imagine)
peeks the refs of the repository we borrow from and tha
On 14-10-15 05:33 PM, Junio C Hamano wrote:
> Marc Branchaud writes:
>
>> On 14-10-15 01:29 PM, Junio C Hamano wrote:
>>
>>> $ git clone \
>>> --reference=/local/pool/linux.git \
>>> --borrow=../my/neighbour/linux-hack.git \
>>> git://git.kernel.org/./linux.git
>>>
Marc Branchaud writes:
> On 14-10-15 01:29 PM, Junio C Hamano wrote:
>
>> $ git clone \
>> --reference=/local/pool/linux.git \
>> --borrow=../my/neighbour/linux-hack.git \
>> git://git.kernel.org/./linux.git
>>
>> With "do the usual --reference thing, but then dis
Johannes Sixt writes:
> Unless you have a secret plan, you can do it even shorter with our
> helpers:
Thanks. No there isn't a secret plan. It was just me being rusty.
>
> diff --git a/builtin/clone.c b/builtin/clone.c
> index 8649090..81efb07 100644
> --- a/builtin/clone.c
> +++ b/builtin/cl
On 14-10-15 01:29 PM, Junio C Hamano wrote:
> Marc Branchaud writes:
>
>> I think things would be more understandable if the option was "--dissociate
>> " and was an explicit alternative to --reference:
>> [[--reference | --dissociate] ]
>>
>> I'm still not liking the name "--dissociate" tho
Am 14.10.2014 um 21:57 schrieb Junio C Hamano:
> +static void dissociate_from_references(void)
> +{
> + struct child_process cmd;
> +
> + memset(&cmd, 0, sizeof(cmd));
We have CHILD_PROCESS_INIT these days.
> + argv_array_pushl(&cmd.args, "repack", "-a", "-d", NULL);
> + cmd.git_c
Marc Branchaud writes:
> I think things would be more understandable if the option was "--dissociate
> " and was an explicit alternative to --reference:
> [[--reference | --dissociate] ]
>
> I'm still not liking the name "--dissociate" though. The original suggestion
> of "--borrow" is bet
On 14-10-14 03:57 PM, Junio C Hamano wrote:
> While use of the --reference option to borrow objects from an
> existing local repository of the same project is an effective way to
> reduce traffic when cloning a project over the network, it makes the
> resulting "borrowing" repository dependent on t
While use of the --reference option to borrow objects from an
existing local repository of the same project is an effective way to
reduce traffic when cloning a project over the network, it makes the
resulting "borrowing" repository dependent on the "borrowed"
repository. After running
gi
12 matches
Mail list logo