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

Re: [PATCH] unpack-trees: correctly compute result count

From
Jeff King <peff@peff.net>
Date
Jan 10, 2020, 10:37 UTC
Message-ID
<20200110103729.GA470836@coredump.intra.peff.net>
In-Reply-To
<pull.520.git.1578621570180.gitgitgadget@gmail.com>
On Fri, Jan 10, 2020 at 01:59:30AM +0000, Derrick Stolee via GitGitGadget wrote:
Show 6 quoted lines
>     Here is a very small fix to the cone-mode pattern-matching in
>     unpack-trees.c. Johannes found this while running a Coverity scan for
>     other issues. He alerted me to the problem and I could immediately see 
>     my error here. In creating this patch, most of my time was spent asking
>     "how did this work before?" and "why didn't this hurt performance?"
>     Hopefully my commit message explains this thoroughly enough.

Yes, it makes perfect sense (and as soon as I saw the explanation of the problem, my immediate response was also "wait, how did this even work").

And the patch itself looks good.
>     As for making it into the release, I don't know. The change is small, it
>     has a very limited scope, but this flaw is also not really hurting
>     anything in a major way.
I could go either way.

This counts as something small and obvious enough that I'd consider slipping it in at the last minute if it were fixing a bad bug. But given how minor the bug is, being conservative makes sense to me, if only because it's good to exercise our release discipline muscles. :)

-Peff
Previous: Derrick Stolee via GitGitGadgetNext: Derrick Stolee
Message 2 of 5 in “unpack-trees: correctly compute result count”
  1. unpack-trees: correctly compute result countDerrick Stolee via GitGitGadget, Jan 10, 2020
  2. Jeff KingJan 10, 2020
  3. Derrick StoleeJan 10, 2020
  4. Derrick StoleeJan 10, 2020
  5. Junio C HamanoJan 10, 2020

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.