Skip to content

Commit 2f160a2

Browse files
authored
Merge pull request #189 from fries1234/fix-comparison-bug
fix a comparision bug with renamed git statuses
2 parents 55b09bf + 4cb6ec0 commit 2f160a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-git-plugin/src/git_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ godot::TypedArray<godot::Dictionary> GitPlugin::_get_modified_files_data() {
245245
}
246246

247247
if (entry->status & git_status_index) {
248-
if (entry->status == GIT_STATUS_INDEX_RENAMED) {
248+
if (entry->status & GIT_STATUS_INDEX_RENAMED) {
249249
godot::String old_path = entry->head_to_index->old_file.path;
250250
stats_files.push_back(create_status_file(old_path, map_changes.at(GIT_STATUS_INDEX_DELETED), TREE_AREA_STAGED));
251251
stats_files.push_back(create_status_file(path, map_changes.at(GIT_STATUS_INDEX_NEW), TREE_AREA_STAGED));

0 commit comments

Comments
 (0)