From: Junio C Hamano Date: Mon, 02 Nov 2026 19:00:57 GMT Subject: Re: [PATCH] read-cache: hide refresh_cache_entry() Message-ID: In-Reply-To: Patrick Steinhardt writes: >> > Could we avoid this forward declaration by moving the function around? >> >> As refresh_cache_entry() that has mere one line in its body calls >> refresh_cache_ent() that is a screenful and defined nearby, both of >> them need to be moved upward, so it becomes a rather unsightly >> change, even though nobody would care when they only look at the end >> result X-<. > > Well, people probably know by now that I myself tend to err more on the > side of fixing up stuff, even if it's a bit more on the painful side of > things. So I'm not going to surprise you by saying that I think that > would be worth it. > > In any case, I don't feel strongly about it. FWIW, the version with large code movement will be the final version, as my philosophy is "once written, unless there is a compelling reason, do not flip flop" and the last one I wrote was the one you suggested, so that I can see how bad the result looks. I think the patch itself may be ugly but the result is easier to work on going forward. Thanks for pushing.