git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Show of hands, how many set USE_NSEC
@ 2008-08-08 16:34 Shawn O. Pearce
  2008-08-08 16:55 ` Johannes Schindelin
  2008-08-13 20:01 ` Robin Rosenberg
  0 siblings, 2 replies; 7+ messages in thread
From: Shawn O. Pearce @ 2008-08-08 16:34 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-13 20:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-08 16:34 Show of hands, how many set USE_NSEC Shawn O. Pearce
2008-08-08 16:55 ` Johannes Schindelin
2008-08-08 16:57   ` Shawn O. Pearce
2008-08-08 17:42     ` Linus Torvalds
2008-08-08 17:52       ` Shawn O. Pearce
2008-08-08 18:00         ` Linus Torvalds
2008-08-13 20:01 ` Robin Rosenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).