]> source.dussan.org Git - jgit.git/commit
Speed up check for modifications of tracked resources 38/538/1
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 10 Apr 2010 15:05:36 +0000 (17:05 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 10 Apr 2010 15:17:35 +0000 (17:17 +0200)
commitb919a943481a5271aeb2a603c1cac05559e1d354
treea9027a4a452b4d7681da6b7a56daff44535ee634
parent2b6c555aee869b7ef01c5953a143ca18583af182
Speed up check for modifications of tracked resources

We only need to check file existense if some other stat returns
a value that may mean that the file does not exist. File.length() == 0
or File.lastModified() == 0 are two such properties. We use length
here.

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