Re: [PATCH 14/16] refs: allow ref backend to be set for clone

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

 



On Wed, Dec 23, 2015 at 8:51 AM, Michael Haggerty <mhagger@xxxxxxxxxxxx> wrote:
> On 12/03/2015 01:35 AM, David Turner wrote:
>> +     if (refs_backend_type && *refs_backend_type) {
>> +             argv_array_push(&cp.args, "--refs-backend-type");
>> +             argv_array_push(&cp.args, refs_backend_type);
>> +     }
>
> This could be shortened to
>
>     argv_array_pushf(&cp.args, "--refs-backend-type=%s", refs_backend_type);

Or, without interpolation:

    argv_array_pushl(&cp.args, "--refs-backend-type", refs_backend_type, NULL);
--
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]