From: Jeff King Date: Mon, 13 Sep 2021 18:04:47 GMT Subject: Re: [PATCH v2 0/4] difftool refactoring + remove OPT_ARGUMENT() macro Message-ID: In-Reply-To: On Mon, Sep 13, 2021 at 05:35:36AM +0200, Ævar Arnfjörð Bjarmason wrote: > I think this v2 should address the comments Jeff King had in > https://lore.kernel.org/git/YT6BnnXeAWn8BycF@coredump.intra.peff.net/; > there's now an amended version of his proposed patch as part of this, > but I prepended it with another one to prepare the "struct > child_process" in cmd_difftool(). > > Doing so nicely gets around the question of the strvec memory > management, since we can trust the run-command.c API to do that for > us, but couldn't in my v1 when we'd copy our own "struct strvec *" to > its "args". Thanks for taking my suggestions into account. I like this approach, and I don't see any bugs. I replied separately to patch 3 with some further opportunities for cleanup, but with or without them, this is all a strict improvement. -Peff