Re: Silly 'git am' UI issue

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

 



On Thu, Mar 3, 2022 at 11:22 PM Ævar Arnfjörð Bjarmason
<avarab@xxxxxxxxx> wrote:
>
> A more general solution would be some continuation of this, i.e. we can
> use the "defval" in "struct option" as a pointer to a validation
> function for any arguments.

I wasn't familiar enough with the option parsing code to do this, but
yes, I think your approach is nicer and makes it easier to add
checking to the other passthrough cases

So Ack from me on that approach instead.

I do suspect that you'll notice when trying to code up a proper patch
that it's probably complicated by the fact that the "validation"
function wants a different argument (in this case a 'struct
apply_state') than the "passthrough" function does (it wants that
"struct strvec").

Again, I'm not familiar with the argument parsing code, it all
post-dates my work, so what do I know..

                Linus




[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