From: Junio C Hamano <gitster@pobox.com>
To: Okhuomon Ajayi <okhuomonajayi54@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] [Outreachy] patch-ids: fix const correctness
Date: Mon, 13 Oct 2025 10:29:10 -0700 [thread overview]
Message-ID: <xmqqzf9u1zix.fsf@gitster.g> (raw)
In-Reply-To: <CAFpMFfBXhfy7ecBzR-cnGViivQG3AHGrQ00vSTnVY6OdxZPSLg@mail.gmail.com> (Okhuomon Ajayi's message of "Mon, 13 Oct 2025 18:22:24 +0100")
Okhuomon Ajayi <okhuomonajayi54@gmail.com> writes:
> I’ll revert my local change, run a build and tests, and then think
> about safer alternatives (or leave the NEEDSWORK comment in place if
> changing the hashmap API isn’t appropriate).
> Thanks for the clarification.
If you can convince readers that changing the hashmap API is not
appropriate, then I would think that would make a great explanation
for a commit that removes the needswork comment without doing
anything else. "Thinking about const correctness issues around this
code is no longer needed. The hashmap API is right to insist that
the extra data pointer must be const because .... Which makes
casting constness away when assigning it to opt, which is what the
code is, is indeed the only reasonable thing to do, and there is no
more change necessary around here." Of course, such a commit log
message must fill in the "because ..." part with a convincing
argument ;-).
Thanks.
next prev parent reply other threads:[~2025-10-13 17:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 16:53 [PATCH] [Outreachy] patch-ids: fix const correctness Okhuomon Ajayi
2025-10-13 17:12 ` Junio C Hamano
2025-10-13 17:22 ` Okhuomon Ajayi
2025-10-13 17:29 ` Junio C Hamano [this message]
2025-10-13 18:14 ` Okhuomon Ajayi
2025-10-13 18:33 ` Junio C Hamano
2025-10-13 21:55 ` Okhuomon Ajayi
-- strict thread matches above, loose matches on Subject: below --
2025-10-09 21:44 Okhuomon Ajayi
2025-10-09 21:46 ` Kristoffer Haugsbakk
2025-10-10 0:45 ` Junio C Hamano
2025-10-09 21:57 ` Okhuomon Ajayi
2025-10-09 23:49 ` Agatha Isabelle
2025-10-10 0:13 ` Okhuomon Ajayi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqzf9u1zix.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=okhuomonajayi54@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).