Thread (72 messages) flat view 72 messages, 5 authors, 4d ago

Re: [PATCH v5 3/3] core: convert build-time USE_NSEC into runtime core.useNanosec

From: Ben Knoble <hidden>
Date: 2026-08-31 15:46:41

Le 31 août 2026 à 11:31, Patrick Steinhardt [off-list ref] a écrit :

On Sat, Aug 29, 2026 at 09:38:20AM -0400, D. Ben Knoble wrote:
quoted
diff --git a/builtin/update-index.c b/builtin/update-index.c
index 241abd4332..8e0c25655f 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -130,7 +130,7 @@ static void xrmdir(const char *path)
static void avoid_racy(void)
{
   /*
-     * not use if we could usleep(10) if USE_NSEC is defined. The
+     * not use if we could usleep(10) if core.useNanosec is defined. The
Micronit: s/defined/enabled/

Otherwise I'm happy with this patch. It looks a lot better now that we
use less preprocessor directives. Thanks!

Patrick
Thanks, queued locally. Will send out as v6 this evening (~5–6h from now) unless I hear differently from anyone. (That comment is hard to read to begin with!)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help