Add default limit for number of shown lines in history
commit7fc2ef6cf5a5b3bd3364560bbd1347661754e5b5
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 2 Aug 2015 14:59:07 +0000 (2 16:59 +0200)
committerAndrey Loskutov <loskutov@gmx.de>
Sun, 2 Aug 2015 14:59:07 +0000 (2 16:59 +0200)
treeffb2858b1f674eb868934bb593bc547bd7545fb0
parentf377a9ea63186f924c94461654039c06cdfdae40
Add default limit for number of shown lines in history

GitHistoryPage can show diffs up to 1000 lines very fast, up to 10000
lines reasonably fast, and starts to be unusable from 20000 lines
upwards.

To avoid UI freezes, a new preference is introduced in the
Team->Git->History page, in the "Show" group: "Maximum lines to show for
a diff", with default value of 1000 lines. If this preference is set,
diff output in the History view shows only specified amount of lines.

Bug: 473013
Change-Id: Ie005c179088cf94582ce730de7415a5b52caebe1
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/PluginPreferenceInitializer.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/UIPreferences.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/UIText.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/commit/DiffStyleRangeFormatter.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/preferences/HistoryPreferencePage.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/uitext.properties