Re: [PATCH] revert: initialize const value
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 4, 2025, 14:26 UTC
- Message-ID
- <xmqqy0rz88ol.fsf@gitster.g>
- In-Reply-To
- <aJC3OiJoqJRnR_My@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> Initializing the value feels like a pragmatic choice to me. There is no > downside, and anyone who might be puzzled by the comment is likely to > git-blame(1) to your commit anyway. So I think the current version is > good enough.
I had to run "git blame" to find out who was being overly clever by using a sentinel like this. I am glad that it was not me ;-)
The fix looks good. It may make it even better if we renamed the variable to sentinel_address or something ;-).