Add a preference for the JGit text buffer size
commit9e62f485a58b26fa1ec87c40faa8eb957a305377
authorThomas Wolf <thomas.wolf@paranor.ch>
Sat, 30 Oct 2021 19:30:01 +0000 (30 21:30 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 31 Oct 2021 11:53:25 +0000 (31 12:53 +0100)
tree8c28d7da51cc6c9a759ec25872aa3d342e012629
parent77ff94dd862b5a8a79688ee4335dc86feae16d00
Add a preference for the JGit text buffer size

Add a new setting to the Window Cache preference page where the user
can change this "text buffer size". It's the number of bytes that JGit
examines to determine whether a file or blob is binary or text, and if
text, whether it has CR-LF line endings. The preference can be set to
values in the range of 8 to 128KiB.

The JGit default is a mere 8kB. Set a larger default of 32KiB.

Bug: 576971
JGit-Dependency: I86e4f5f62e14f99b35726b198ba3bbf1669418d9
Change-Id: I4ed911abbe638dc723e19770e641653532dd12b5
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferenceInitializer.java
org.eclipse.egit.core/src/org/eclipse/egit/core/GitCorePreferences.java
org.eclipse.egit.core/src/org/eclipse/egit/core/RepositoryInitializer.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/StorageSizeFieldEditor.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/WindowCachePreferencePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties