We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2382891 commit e7dec7dCopy full SHA for e7dec7d
git/diff.py
@@ -7,6 +7,7 @@
7
8
import enum
9
import re
10
+import warnings
11
12
from git.cmd import handle_process_output
13
from git.compat import defenc
@@ -554,6 +555,11 @@ def renamed(self) -> bool:
554
555
This property is deprecated.
556
Please use the :attr:`renamed_file` property instead.
557
"""
558
+ warnings.warn(
559
+ "Diff.renamed is deprecated, use Diff.renamed_file instead",
560
+ DeprecationWarning,
561
+ stacklevel=2,
562
+ )
563
return self.renamed_file
564
565
@property
0 commit comments