| 275 | } |
| 276 | |
| 277 | void VersionControlEditorPlugin::_commit() { |
| 278 | CHECK_PLUGIN_INITIALIZED(); |
| 279 | |
| 280 | String msg = commit_message->get_text().strip_edges(); |
| 281 | |
| 282 | ERR_FAIL_COND_MSG(msg.is_empty(), "No commit message was provided."); |
| 283 | |
| 284 | EditorVCSInterface::get_singleton()->commit(msg); |
| 285 | |
| 286 | version_control_dock_button->set_pressed(false); |
| 287 | |
| 288 | commit_message->release_focus(); |
| 289 | commit_button->release_focus(); |
| 290 | commit_message->set_text(""); |
| 291 | |
| 292 | _refresh_stage_area(); |
| 293 | _refresh_commit_list(); |
| 294 | _refresh_branch_list(); |
| 295 | _clear_diff(); |
| 296 | } |
| 297 | |
| 298 | void VersionControlEditorPlugin::_branch_item_selected(int p_index) { |
| 299 | CHECK_PLUGIN_INITIALIZED(); |
nothing calls this directly
no test coverage detected