You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whitespace handling and trailer selection isn't very trivial or good
documented. It therefore seemed easier and less error prone to just call
git to parse the message for the trailers section and remove superfluos
whitespaces.
Copy file name to clipboardExpand all lines: git/objects/commit.py
+26-17Lines changed: 26 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@
4
4
# This module is part of GitPython and is released under
5
5
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6
6
importdatetime
7
-
importre
8
-
fromsubprocessimportPopen
7
+
fromsubprocessimportPopen, PIPE
9
8
fromgitdbimportIStream
10
9
fromgit.utilimport (
11
10
hex_to_bin,
@@ -14,6 +13,7 @@
14
13
finalize_process
15
14
)
16
15
fromgit.diffimportDiffable
16
+
fromgit.cmdimportGit
17
17
18
18
from .treeimportTree
19
19
from . importbase
@@ -322,10 +322,10 @@ def trailers(self) -> Dict:
322
322
323
323
Git messages can contain trailer information that are similar to RFC 822
0 commit comments