Re: [PATCH v2 2/5] tests: handle --global directly in test_config/test_unconfig

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

 



On Thu, Jun 16, 2022 at 2:34 PM Junio C Hamano <gitster@xxxxxxxxx> wrote:
>
> Jacob Keller <jacob.keller@xxxxxxxxx> writes:
>
> > +             --global)
> > +                     global=yes
>
>                         global=--global
>
> > ...
> > +     git ${config_dir:+-C "$config_dir"} config ${global:+--global} --unset-all "$1"
>
>         git ${config_dir:+-C "$config_dir"} config $global --unset-all "$1"
>
> The other one can use the same trick to make it more concise.
>

Ah, yep, makes sense!

> Thanks.



[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]

  Powered by Linux