git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] send-email: relay '-v N' to format-patch

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 28, 2022, 12:34 UTC
Message-ID
<221128.86v8mzl0bh.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqqzgcd9ok2.fsf@gitster.g>
On Sun, Nov 27 2022, Junio C Hamano wrote:
Show 16 quoted lines
> Kyle Meyer <kyle@kyleam.com> writes:
>
>> Here's a patch handling the -v case.  I don't plan on working on a more
>> complete fix for the other cases (as I mentioned before, I don't use
>> send-email to drive format-patch), but in my opinion the -v fix by
>> itself is still valuable.
>
> Yup, I think it is a good place to stop for the first patch.  Other
> people can add more when they discover the need, and anything more
> complex [*] is probably not worth the effort, I would think.
>
>     Side note: [*] we could imagine running "git format-patch -h"
>     (or a new variant of it), parse its output and populate the
>     %options dynamically, for example.
>
> Will queue.  Thanks.

This is just a comment on the #leftoverbits: I've looked at this option parsing in "git-send-email" before, and IMO the right long-term fix is to split out the *.perl code into a "git send-email--helper", and do the option parsing in C using our parse_options().

Some of it will be a bit of a hassle, but it should be much easier after 8de2e2e41b2 (Merge branch 'ab/send-email-optim', 2021-07-22) (and the subsquent regression fix).

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “send-email: disable option auto-abbreviation”
  1. send-email: disable option auto-abbreviationKyle Meyer, Nov 24, 2022
  2. Junio C HamanoNov 25, 2022
  3. Kyle MeyerNov 25, 2022
  4. send-email: relay '-v N' to format-patchKyle Meyer, Nov 26, 2022
  5. Junio C HamanoNov 27, 2022
  6. Ævar Arnfjörð BjarmasonNov 28, 2022
  7. Junio C HamanoNov 28, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.