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

Re: [PATCH] git: remove unneeded casts

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 14, 2022, 23:49 UTC
Message-ID
<xmqqh6xxv946.fsf@gitster.g>
In-Reply-To
<Y5o9NNVx7dFLhIMd@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I'll stop here for now. It's a fair bit of leg-work digging
> these up (though again, I do think there's value in
> understanding why the cast was there, even if we know it
> isn't _currently_ doing anything).

I agree with the value of understanding why each of these casts has become unnecessary, and thanks for demonstrating how a rerolled version should justify its changes with its findings behind each of the unnecessary casts.

What do you recommend the next round should look like? Multi patch series, each of which removes one cast with its proposed log message explains how it has become unneeded? A single patch with a gigantic proposed log message that lists the findings for each and all casts that are removed? Somewhere in between, perhaps split along the file boundary, or grouped by the event that made them unneeded (e.g. "cmd_main() used to take non-const but when we made it to take const, all of these casts we remove in this patch became unneeded")?

Thanks.
Previous: Jeff KingNext: Jeff King
Message 3 of 8 in “git: remove unneeded casts”
  1. git: remove unneeded castsRose via GitGitGadget, Dec 14, 2022
  2. Jeff KingDec 14, 2022
  3. Junio C HamanoDec 14, 2022
  4. Jeff KingDec 17, 2022
  5. Junio C HamanoDec 19, 2022
  6. Ævar Arnfjörð BjarmasonDec 15, 2022
  7. Jeff KingDec 17, 2022
  8. Phillip WoodDec 15, 2022

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.