Skip to content

Commit

Permalink
Merge pull request #189 from fries1234/fix-comparison-bug
Browse files Browse the repository at this point in the history
fix a comparision bug with renamed git statuses
  • Loading branch information
twaritwaikar authored Oct 3, 2023
2 parents 55b09bf + 4cb6ec0 commit 2f160a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godot-git-plugin/src/git_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ godot::TypedArray<godot::Dictionary> GitPlugin::_get_modified_files_data() {
}

if (entry->status & git_status_index) {
if (entry->status == GIT_STATUS_INDEX_RENAMED) {
if (entry->status & GIT_STATUS_INDEX_RENAMED) {
godot::String old_path = entry->head_to_index->old_file.path;
stats_files.push_back(create_status_file(old_path, map_changes.at(GIT_STATUS_INDEX_DELETED), TREE_AREA_STAGED));
stats_files.push_back(create_status_file(path, map_changes.at(GIT_STATUS_INDEX_NEW), TREE_AREA_STAGED));
Expand Down

0 comments on commit 2f160a2

Please sign in to comment.