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

Re: [PATCH] chdir-notify.h: Removed unused param 'name'

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2026, 20:42 UTC
Message-ID
<xmqqwltsl9gx.fsf@gitster.g>
In-Reply-To
<20260814203100.GB2575854@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I think this makes sense. It is often helpful in cleanup patches to
> summarize the history in the commit message. And then we can be sure
> that the unused field is OK to be removed, and it is not simply a bug
> that nobody is passing in the value.

Thanks for mentioning this. I also was curious when we lost the users of "name", as it is hard to believe that we introduced name that nobody uses from day one.

> I think ultimately the reason is that the only user of the "name" field
> was chdir_notify_reparent(), when it produced trace output. That went
> away in 5bf546755c (chdir-notify: drop unused `chdir_notify_reparent()`,
> 2026-06-25).

OK. That is fairly recent. The reason why we used to need reparent but we no longer do is because...?

    ... goes and looks ...

Ah, because the files backend of the refs subsystem started solving the issue it used to solve with _reparent() differently in the same series, losing the last caller of the _reparent() API.

Makes sense.
Show 7 quoted lines
> So those other patches were preparing for that world, though I think the
> ordering is somewhat confusing (and I won't be surprised if there was
> some intermediate state where turning on tracing might have caused a
> segfault).
>
> So AFAICT the patch itself is good, but it might be nice to give some
> explanation in the commit message.
Yes, that would be very helpful.
Thanks.
Previous: Jeff KingNext: Colin Hinton
Message 3 of 5 in “chdir-notify.h: Removed unused param 'name'”
  1. chdir-notify.h: Removed unused param 'name'Colin Hinton, Aug 14, 2026
  2. Jeff KingAug 14, 2026
  3. Junio C HamanoAug 14, 2026
  4. chdir-notify.h: Removed unused param 'name'Colin Hinton, Aug 14, 2026
  5. Jeff KingAug 15, 2026

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.