소스 검색

Merge "Speed up check for modifications of tracked resources"

tags/v0.8.1
Shawn Pearce 14 년 전
부모
커밋
333a0536a7
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6
    4
      org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java

+ 6
- 4
org.eclipse.jgit/src/org/eclipse/jgit/lib/GitIndex.java 파일 보기

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
} }
} }


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.

Loading…
취소
저장