|
|
@ -567,7 +567,12 @@ public class GitIndex { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
File file = getFile(wd); |
|
|
|
File file = getFile(wd); |
|
|
|
if (!file.exists()) |
|
|
|
long length = file.length(); |
|
|
|
|
|
|
|
if (length == 0) { |
|
|
|
|
|
|
|
if (!file.exists()) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (length != size) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
// JDK1.6 has file.canExecute
|
|
|
|
// JDK1.6 has file.canExecute
|
|
|
@ -600,9 +605,6 @@ public class GitIndex { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (file.length() != size) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Git under windows only stores seconds so we round the timestamp
|
|
|
|
// Git under windows only stores seconds so we round the timestamp
|
|
|
|
// Java gives us if it looks like the timestamp in index is seconds
|
|
|
|
// Java gives us if it looks like the timestamp in index is seconds
|
|
|
|
// only. Otherwise we compare the timestamp at millisecond prevision.
|
|
|
|
// only. Otherwise we compare the timestamp at millisecond prevision.
|
|
|
|