Round the timestamp returned from the filesystem.
commit71d2a033a234e3493da7547972002a1cfa1acf0a
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 21 Aug 2007 21:14:43 +0000 (21 23:14 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 22 Aug 2007 19:01:02 +0000 (22 21:01 +0200)
tree93a6981ca6ecec9fe6a88e3d5d45cfb8d2e3139f
parentec80c9b112f2b2807273382c5bf57ebaefdb368d
Round the timestamp returned from the filesystem.

MSys (wndows) only return second precision timestamps for files even though
NTFS uses precision down to 1/100th of a second. Since jgit cannot handle
most of the file attributes in the index I want to use the higher precision
whenever possible. So jgit now compares the timestamp at the millisecond
precision returned by Java, but if an index entry does not use the subsecond
bits those are not compared against.

Git itself seems not to use the subsecond part for comparison so jgit will
store millisecond timestamps.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/GitIndex.java