Branch name validation is slow for big repositories
commit455a6c3648c9dbc04fe7c82b2bb8d3ef91797825
authorMichael Keppler <Michael.Keppler@gmx.de>
Wed, 4 Apr 2018 09:56:35 +0000 (4 11:56 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 25 Apr 2018 08:21:45 +0000 (25 04:21 -0400)
treec8c6e87810fa02a7e24277625ac7c596d775d64b
parent288c42d43c476d71b088c7f417aa09687a1af1b9
Branch name validation is slow for big repositories

Run the branch name validation in a job, which can be rescheduled with
every new character. Therefore it does no longer block on fast input,
only the very last character still has the small delay that it takes for
one round of validation.

This change is inspired by the patch at bug 352253, therefore I listed a
co-author.

Bug: 533198
Change-Id: Ib9fba9db6d3f4054b9a80662721b3e7ded11077e
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
Co-authored-by: Curtis Windatt <curtis.windatt.public@gmail.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/CreateBranchPage.java