Skip to content

Commit

Permalink
Fix iter_change_type diff renamed property to prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkrzyskow committed Jun 7, 2024
1 parent d597088 commit e1c660d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def iter_change_type(self, change_type: Lit_change_type) -> Iterator[T_Diff]:
yield diffidx
elif change_type == "C" and diffidx.copied_file:
yield diffidx
elif change_type == "R" and diffidx.renamed:
elif change_type == "R" and diffidx.renamed_file:
yield diffidx
elif change_type == "M" and diffidx.a_blob and diffidx.b_blob and diffidx.a_blob != diffidx.b_blob:
yield diffidx
Expand Down

0 comments on commit e1c660d

Please sign in to comment.