File tree 2 files changed +6
-7
lines changed
Filter options
2 files changed +6
-7
lines changed
Original file line number Diff line number Diff line change @@ -404,8 +404,8 @@ def trailers(self) -> Dict[str, str]:
404
404
def trailers_list (self ) -> List [Tuple [str , str ]]:
405
405
"""Get the trailers of the message as a list.
406
406
407
- Git messages can contain trailer information that are similar to RFC 822 e-mail
408
- headers. See :manpage:`git-interpret-trailers(1)`.
407
+ Git messages can contain trailer information that are similar to :rfc:` 822`
408
+ e-mail headers. See :manpage:`git-interpret-trailers(1)`.
409
409
410
410
This function calls ``git interpret-trailers --parse`` onto the message to
411
411
extract the trailer information, returns the raw trailer data as a list.
@@ -456,8 +456,8 @@ def trailers_list(self) -> List[Tuple[str, str]]:
456
456
def trailers_dict (self ) -> Dict [str , List [str ]]:
457
457
"""Get the trailers of the message as a dictionary.
458
458
459
- Git messages can contain trailer information that are similar to RFC 822 e-mail
460
- headers. See :manpage:`git-interpret-trailers(1)`.
459
+ Git messages can contain trailer information that are similar to :rfc:` 822`
460
+ e-mail headers. See :manpage:`git-interpret-trailers(1)`.
461
461
462
462
This function calls ``git interpret-trailers --parse`` onto the message to
463
463
extract the trailer information. The key value pairs are stripped of leading and
Original file line number Diff line number Diff line change @@ -223,9 +223,8 @@ def parse_date(string_date: Union[str, datetime]) -> Tuple[int, int]:
223
223
224
224
* Aware datetime instance
225
225
* Git internal format: timestamp offset
226
- * RFC 2822: ``Thu, 07 Apr 2005 22:13:13 +0200``
227
- * ISO 8601: ``2005-04-07T22:13:13``
228
- The T can be a space as well.
226
+ * :rfc:`2822`: ``Thu, 07 Apr 2005 22:13:13 +0200``
227
+ * ISO 8601: ``2005-04-07T22:13:13`` - The ``T`` can be a space as well.
229
228
230
229
:return:
231
230
Tuple(int(timestamp_UTC), int(offset)), both in seconds since epoch
You can’t perform that action at this time.
0 commit comments