mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git4idea: Added sorting of roots in switch branches dialog
This commit is contained in:
@@ -168,6 +168,12 @@ public class GitSwitchBranchesDialog extends DialogWrapper {
|
||||
else {
|
||||
myBranches = prepareBranchDescriptors(target, roots);
|
||||
}
|
||||
Collections.sort(myBranches, new Comparator<BranchDescriptor>() {
|
||||
@Override
|
||||
public int compare(BranchDescriptor o1, BranchDescriptor o2) {
|
||||
return o1.getRoot().compareTo(o2.getRoot());
|
||||
}
|
||||
});
|
||||
if (target == null) {
|
||||
myNameTextField.setText(generateNewConfigurationName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user