racy git detection and lastmodified resolution in msysgit

1 view
Skip to first unread message

Matthias Sohn

unread,
Jul 16, 2010, 8:15:09 AM7/16/10
to msysGit
Shawn pointed out [1] that JGit truncates the lastmodified timestamp
cached in the index to 1s resolution
since msysgit discards the sub-second portion of the timestamp it gets
back from Windows. We are now
wondering why this can't be fixed in msysgit. A more precise racy git
detection could help to reduce the
chance to hit the racily clean case.

[1] http://dev.eclipse.org/mhonarc/lists/jgit-dev/msg00487.html

--
Matthias

Johannes Schindelin

unread,
Jul 16, 2010, 5:35:39 PM7/16/10
to Matthias Sohn, msysGit
Hi,

I might misremember, but I think this was done to make the behavior
consistent with Cygwin. Unless there are valid concerns within the next
few days, I will gladly take a patch to fix this behavior to mimic JGit's
behavior.

Ciao,
Dscho

Reply all
Reply to author
Forward
0 new messages