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

Re: [PATCH] clean: demonstrate a bug with pathspecs

From
Elijah Newren <newren@gmail.com>
Date
Jan 16, 2020, 18:01 UTC
Message-ID
<CABPp-BFX2ER9aqaHi=sbaSppGobCOisR2a8z1mTGqbQ8xS_WCA@mail.gmail.com>
In-Reply-To
<e008da66-defe-d2b0-410b-64b7754b9c6e@gmail.com>
On Wed, Jan 15, 2020 at 5:23 PM Derrick Stolee <stolee@gmail.com> wrote:
Show 9 quoted lines
>
> On 1/15/2020 7:38 PM, Elijah Newren wrote:
> > Is there an inverted phrase corresponding to "the gift that keeps on
> > giving", something like "the punishment that keeps on punishing"?  If
> > so, it would be a very appropriate description of dir.c.
>
> At least we will continue adding tests until we converge towards
> correctness, and the behavior issues are even more contrived and
> special case (like this one).

This doesn't seem any more contrived or special case than most my previous fixes for dir.c...

Show 6 quoted lines
> > Yeah, I still have context.  I even think I've got an idea about what
> > the fix might be, though with dir.c my ideas about fixes usually just
> > serve as starting points for debugging before I find the real fix.
> > I'll try to dig in.
>
> Thanks! I'll try to review it carefully when it arrives. Good luck.

Man, I'm such a bozo. It turns out, for once, that my idea for the fix was correct but after digging a bit I realized that it was essentially a bug I fixed not that long ago once already -- and that I myself re-introduced it (for a slightly different case) in some commits where I used some strongly worded disgust that "this bad code structure is going to cause someone to mess up in <this way>" and then I made that exact kind of mistake I was complaining about in the commit message...as part of that EXACT commit, to boot.

At least it'll make for a fun new commit message explaining it all...

Anyway, I'm going to pull your commit into my series so I can put my fix on top, and lump it in with Peff's two patches over at https://lore.kernel.org/git/20200115202146.GA4091171@coredump.intra.peff.net/ since all these patches are basically "more fill_directory() fixes". Let me know if you have any concerns with that.

Elijah
Previous: Derrick StoleeNext: Junio C Hamano
Message 8 of 9 in “clean: demonstrate a bug with pathspecs”
  1. clean: demonstrate a bug with pathspecsDerrick Stolee via GitGitGadget, Jan 15, 2020
  2. Kyle MeyerJan 15, 2020
  3. Derrick StoleeJan 16, 2020
  4. Jonathan NiederJan 16, 2020
  5. Derrick StoleeJan 16, 2020
  6. Elijah NewrenJan 16, 2020
  7. Derrick StoleeJan 16, 2020
  8. Elijah NewrenJan 16, 2020
  9. Junio C HamanoJan 16, 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.