From: Ben Knoble Date: Thu, 03 Sep 2026 01:00:35 GMT Subject: Re: [PATCH v6 3/3] core: convert build-time USE_NSEC into runtime core.useNanosec Message-ID: <842F2470-F158-4E77-AD98-DEA530FC4460@gmail.com> In-Reply-To: > Le 2 sept. 2026 à 17:05, Junio C Hamano a écrit : > > Ben Knoble writes: > >>> My suggestion wasn't really about supporting more cases, but just about >>> making the code simpler by having one less #ifdef. But like I said >>> earlier, we can't get rid of the NO_NSEC knob entirely, so it's probably >>> not worth worrying about the one #ifdef either way. >>> >>> -Peff >> >> Right on. Always good to find myself nodding along with your explanations :) > > OK. So will we see a hopefully small and final reroll that takes > advantage of the fact that ST_XTIME_NSEC(st) would usefully hide the > NO_NSEC build-time differences? Ah, no: I wasn’t planning on removing this ifdef, as I think Peff and I agree that it’s not worth the hassle (at least for now). > I still am worried that something that sits this deep in the > callchain can easily BUG() when working on a repository that is not > the_repository due to the use of repo_config_values(), and we might > be better off adopting safe default when istate->repo is different > from the_repository, but other than that, I think the series is in > great shape. > > Thanks. Yea. See previous messages re: convincing the test apparatus to set this globally. If I could run it that way at least locally, it would go a little ways towards scaring those BUGs out into the light. Absent suggestions, though, I’m afraid my time is limited to explore the guts of yet another subsystem ;)