Re: [PATCH 3/7] t5528-push-default.sh: add helper functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthieu Moy <Matthieu.Moy@xxxxxxxxxxxxxxx> writes:

> Junio C Hamano <gitster@xxxxxxxxx> writes:
>
>> Matthieu Moy <Matthieu.Moy@xxxxxxxxxxxxxxx> writes:
>>
>>>> ... and we can use --all not master here, right?
>>>
>>> Actually, we can even use --all everywhere. And then, we don't even need
>>> the second argument, and we can simplify greatly the function:
>>
>> That did cross my mind but I suspected that the reason to have the
>> argument was because you would want to use the helper also to test
>> 'matching' case where you want to make sure ones that the pusher does
>> not have are left alone.
>
> I did not add much for "matching" (that would be a separate topic, and
> my Git time budget is getting short). But I think the simplicity of the
> new function (both caller and callee side) is worth it, even if we later
> add something more complex for the case of "matching".

Actually, there's a much stronger argument: we're talking about
test_push_failure (not success), so whatever the mode is, no branch
should be updated.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]