MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _commit

Method _commit

editor/version_control/version_control_editor_plugin.cpp:277–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277void 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
298void VersionControlEditorPlugin::_branch_item_selected(int p_index) {
299 CHECK_PLUGIN_INITIALIZED();

Callers

nothing calls this directly

Calls 7

strip_edgesMethod · 0.80
release_focusMethod · 0.80
get_textMethod · 0.45
is_emptyMethod · 0.45
commitMethod · 0.45
set_pressedMethod · 0.45
set_textMethod · 0.45

Tested by

no test coverage detected