mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
git: propose better message for changelist name
Strip consecutive spaces. Move this replacing before searching for changelists with same name, which is more logical.
This commit is contained in:
@@ -457,7 +457,8 @@ public class GitCherryPicker extends VcsCherryPicker {
|
||||
return null;
|
||||
}
|
||||
|
||||
String changeListName = createNameForChangeList(commitMessage, 0).replace('\n', ' ');
|
||||
String adjustedMessage = commitMessage.replace('\n', ' ').replaceAll("[ ]{2,}", " ");
|
||||
String changeListName = createNameForChangeList(adjustedMessage, 0);
|
||||
LocalChangeList createdChangeList = ((ChangeListManagerEx)myChangeListManager).addChangeList(changeListName, commitMessage, commit);
|
||||
LocalChangeList actualChangeList = moveChanges(originalChanges, createdChangeList);
|
||||
if (actualChangeList != null && !actualChangeList.getChanges().isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user