Re: Show of hands, how many set USE_NSEC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fredagen den 8 augusti 2008 18.34.55 skrev Shawn O. Pearce:
> 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.
When jgit finds an index entry with zero nsec it ignores the subsecond
portion of the file timestamp when comparing.

-- robin

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux