Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2019-08-08 14:44:43 +0000
committerMatthias Sohn2019-08-08 14:53:17 +0000
commitfaa92cd7c64ba4bce5d399c90fa855ed7a9d916d (patch)
treeda515972aea95172f77ae1f497e86b34cb65ea28
parent245b4bb7b601f1e44c0834c34468766287919e37 (diff)
downloadegit-faa92cd7c64ba4bce5d399c90fa855ed7a9d916d.tar.gz
egit-faa92cd7c64ba4bce5d399c90fa855ed7a9d916d.tar.xz
egit-faa92cd7c64ba4bce5d399c90fa855ed7a9d916d.zip
Configure FS to determine FileStore attributes asynchronously
We don't want to block EGit while JGit measures filesystem specific attributes like timestamp resolution which may block for a couple of seconds. While attributes are measured in the background JGit will use fallback values until the measurement is finished. Measured values are persisted in ~/.gitconfig under config key "filesystem" and reloaded from there on restart. Change-Id: Ia9691581ab0f6ac4499f02370f19642be1e3f8b6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
index f82cc6d6e6..4ad8e5c8bd 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java
@@ -211,6 +211,8 @@ public class Activator extends Plugin implements DebugOptionsListener {
super.start(context);
pluginId = context.getBundle().getSymbolicName();
+ FS.setAsyncFileStoreAttributes(true);
+
SystemReader.setInstance(
new EclipseSystemReader(SystemReader.getInstance()));

Back to the top