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 2c52696 commit 03464d9Copy full SHA for 03464d9
git/objects/commit.py
@@ -14,6 +14,7 @@
14
from subprocess import Popen, PIPE
15
import sys
16
from time import altzone, daylight, localtime, time, timezone
17
+import warnings
18
19
from gitdb import IStream
20
@@ -399,6 +400,11 @@ def trailers(self) -> Dict[str, str]:
399
400
Dictionary containing whitespace stripped trailer information.
401
Only contains the latest instance of each trailer key.
402
"""
403
+ warnings.warn(
404
+ "Commit.trailers is deprecated, use Commit.trailers_list or Commit.trailers_dict instead",
405
+ DeprecationWarning,
406
+ stacklevel=2,
407
+ )
408
return {k: v[0] for k, v in self.trailers_dict.items()}
409
410
@property
0 commit comments