Hide refs/heads/ prefix in cherry-pick branch suggestion list

Bug: Issue 2526
Change-Id: I82b8bf7f6abbdfbade7f508f2b974a98d8ca39b4
This commit is contained in:
David Pursehouse
2014-03-11 11:31:11 +09:00
parent 218b15778e
commit e56d09df11

View File

@@ -93,6 +93,10 @@ public abstract class CherryPickDialog extends ActionDialog {
@Override
public String getDisplayString() {
final String refsHeads = "refs/heads/";
if (branch.ref().startsWith(refsHeads)) {
return branch.ref().substring(refsHeads.length());
}
return branch.ref();
}