Skip to content

Commit 1f6e4eb

Browse files
committed
get file store attr async to improve jgit startup performance
1 parent 0941938 commit 1f6e4eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/pl/project13/core/JGitProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.eclipse.jgit.revwalk.RevWalk;
2626
import org.eclipse.jgit.revwalk.RevWalkUtils;
2727
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
28+
import org.eclipse.jgit.util.FS;
2829

2930
import pl.project13.core.jgit.DescribeResult;
3031
import pl.project13.core.jgit.JGitCommon;
@@ -58,6 +59,7 @@ public static JGitProvider on(@Nonnull File dotGitDirectory, @Nonnull LogInterfa
5859
JGitProvider(@Nonnull File dotGitDirectory, @Nonnull LogInterface log) {
5960
super(log);
6061
this.dotGitDirectory = dotGitDirectory;
62+
FS.FileStoreAttributes.setBackground(true);
6163
this.jGitCommon = new JGitCommon(log);
6264
}
6365

0 commit comments

Comments
 (0)