git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Show of hands, how many set USE_NSEC

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 8, 2008, 16:34 UTC
Message-ID
<20080808163455.GE9152@spearce.org>
How many users really build their Git with USE_NSEC=1?

I'm suspecting a status issue in jgit caused by jgit honoring a millisecond resolution on file modification timestamps, and the underlying filesystem supporting at least a 1/2 second (or finer) granularity, but C Git was built without USE_NSEC so it only honors 1 second granularity.

This can cause jgit to think a file is locally modified as the mtime has data in the tv_nsec field, but C Git set that to 0 in the index as USE_NSEC wasn't enabled at build time.

I'm trying to come up with a sane way for jgit to realize it should truncate the milliseconds out of a timestamp before it comes to the index record.

-- 
Shawn.
Next: Johannes Schindelin
Message 1 of 7 in “Show of hands, how many set USE_NSEC”
  1. Shawn O. PearceAug 8, 2008
  2. Johannes SchindelinAug 8, 2008
  3. Shawn O. PearceAug 8, 2008
  4. Linus TorvaldsAug 8, 2008
  5. Shawn O. PearceAug 8, 2008
  6. Linus TorvaldsAug 8, 2008
  7. Robin RosenbergAug 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.