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

Re: [PATCH v2] send-email: make it easy to discern the messages for each patch

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 5, 2024, 16:44 UTC
Message-ID
<xmqqjzlbwyhr.fsf@gitster.g>
In-Reply-To
<8d47bd687f2ad80bbc1e1c86ae337327@manjaro.org>
Dragan Simic <dsimic@manjaro.org> writes:
> Well, I actually wasn't lazy, but instead I wanted to give this patch
> better chances to be accepted, by introducing as a small amount of
> changes to the code as possible.  This was a lesson not to take that
> route, but to do "the right thing" instead.
The lesson you should be taking is a bit different here, though.

As we discussed, doing the separator correctly is harder and doing the terminator correctly is much easier and less error prone. So if we chose to do terminator semantics and punt on doing separator semantics, the right thing could have been to adjust the existing tests to make sure that the new output with unnecessary trailing blank line is expected.

Either that, or we should fix the code not to break the current expectation. Doing neither of these is not quite acceptable--- that is the lesson from this episode, I would think.

Thanks.
Previous: Dragan SimicNext: Dragan Simic
Message 4 of 9 in “send-email: make it easy to discern the messages for each patch”
  1. send-email: make it easy to discern the messages for each patchDragan Simic, Apr 4, 2024
  2. Junio C HamanoApr 4, 2024
  3. Dragan SimicApr 4, 2024
  4. Junio C HamanoApr 5, 2024
  5. Dragan SimicApr 5, 2024
  6. Junio C HamanoApr 5, 2024
  7. Dragan SimicApr 5, 2024
  8. Kristoffer HaugsbakkApr 5, 2024
  9. Dragan SimicApr 5, 2024

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.