mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Sort common local and remote branches in the popup
This commit is contained in:
@@ -162,7 +162,15 @@ public class GitMultiRootBranchConfig {
|
||||
commonLocal.retainAll(GitUtil.getBranchNames(branches));
|
||||
}
|
||||
}
|
||||
return commonLocal != null ? commonLocal : Collections.<String>emptyList();
|
||||
|
||||
if (commonLocal != null) {
|
||||
ArrayList<String> common = new ArrayList<String>(commonLocal);
|
||||
Collections.sort(common);
|
||||
return common;
|
||||
}
|
||||
else {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user