login
Header Space

 
 

Show of hands, how many set USE_NSEC

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, August 8, 2008 - 12:34 pm

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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Show of hands, how many set USE_NSEC, Shawn O. Pearce, (Fri Aug 8, 12:34 pm)
Re: Show of hands, how many set USE_NSEC, Robin Rosenberg, (Wed Aug 13, 4:01 pm)
Re: Show of hands, how many set USE_NSEC, Johannes Schindelin, (Fri Aug 8, 12:55 pm)
Re: Show of hands, how many set USE_NSEC, Shawn O. Pearce, (Fri Aug 8, 12:57 pm)
Re: Show of hands, how many set USE_NSEC, Linus Torvalds, (Fri Aug 8, 1:42 pm)
Re: Show of hands, how many set USE_NSEC, Shawn O. Pearce, (Fri Aug 8, 1:52 pm)
Re: Show of hands, how many set USE_NSEC, Linus Torvalds, (Fri Aug 8, 2:00 pm)
speck-geostationary