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

Re: [PATCH] sparse-checkout: be consistent with end of options markers

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 26, 2023, 17:18 UTC
Message-ID
<xmqqfrzoj31l.fsf@gitster.g>
In-Reply-To
<20231224083206.GA2053380@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> On Sun, Dec 24, 2023 at 01:00:11AM +0000, Elijah Newren via GitGitGadget wrote:
>
>> Remove the erroneous PARSE_OPT_KEEP_UNKNOWN_OPT flag now to fix this
>> bug.  Note that this does mean that anyone who might have been using
>> [...]
>
> Thanks for wrapping this up in patch form. It looks good to me,
> including the reasoning. You didn't add any tests, but I find it rather
> unlikely that we'd later regress here.

Surely. I am certainly OK with just dropping KEEP_UNKNOWN but I would strongly prefer to document what we "fixed" (your "misspelt option name" example) and what (mis|ab)use the people may have been relying on we have "broken" (the same "misspelt" behaviour that can be intentional is now forbidden, and we document that this change in behaviour is intentional) with a new test.

Thanks.
Previous: Jeff KingNext: Jeff King
Message 3 of 8 in “sparse-checkout: be consistent with end of options markers”
  1. sparse-checkout: be consistent with end of options markersElijah Newren via GitGitGadget, Dec 24, 2023
  2. Jeff KingDec 24, 2023
  3. Junio C HamanoDec 26, 2023
  4. Jeff KingDec 28, 2023
  5. Junio C HamanoDec 26, 2023
  6. Elijah NewrenDec 26, 2023
  7. sparse-checkout: be consistent with end of options markersElijah Newren via GitGitGadget, Dec 26, 2023
  8. Junio C HamanoDec 26, 2023

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.