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

Method get_diff

editor/version_control/editor_vcs_interface.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102List<EditorVCSInterface::DiffFile> EditorVCSInterface::get_diff(const String &p_identifier, TreeArea p_area) {
103 TypedArray<Dictionary> result;
104 if (!GDVIRTUAL_CALL(_get_diff, p_identifier, int(p_area), result)) {
105 return {};
106 }
107
108 List<DiffFile> diff_files;
109 for (int i = 0; i < result.size(); i++) {
110 diff_files.push_back(_convert_diff_file(result[i]));
111 }
112 return diff_files;
113}
114
115List<EditorVCSInterface::Commit> EditorVCSInterface::get_previous_commits(int p_max_commits) {
116 TypedArray<Dictionary> result;

Callers 1

_load_diffMethod · 0.80

Calls 2

sizeMethod · 0.65
push_backMethod · 0.45

Tested by

no test coverage detected