Hide refs/heads/ prefix in cherry-pick branch suggestion list
Bug: Issue 2526 Change-Id: I82b8bf7f6abbdfbade7f508f2b974a98d8ca39b4
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user