Re: [RFC 02/11] remote.c: add infrastructure for parsing --prune options

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

 



On Wed, Dec 4, 2013 at 12:44 PM, Michael Haggerty <mhagger@xxxxxxxxxxxx> wrote:
> +void argv_push_prune_option(struct argv_array *argv,
> +                           struct prune_option *prune_option)
> +{
> +       if (prune_option->prune != -1)
> +               argv_array_pushf(argv,
> +                                prune_option->prune
> +                                ? "--prune"
> +                                : "--no-prune");
> +}

Nit. I think argv_array_push() is enough for this case?
-- 
Duy
--
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]