@@ -389,7 +389,9 @@ def __setstate__(self, d: Dict[str, Any]) -> None:
389
389
390
390
@classmethod
391
391
def refresh (cls , path : Union [None , PathLike ] = None ) -> bool :
392
- """This gets called by the refresh function (see the top level ``__init__``).
392
+ """Update information about the git executable :class:`Git` objects will use.
393
+
394
+ Called by the :func:`git.refresh` function in the top level ``__init__``.
393
395
394
396
:param path:
395
397
Optional path to the git executable. If not absolute, it is resolved
@@ -1486,7 +1488,9 @@ def _call_process(
1486
1488
def _parse_object_header (self , header_line : str ) -> Tuple [str , str , int ]:
1487
1489
"""
1488
1490
:param header_line:
1489
- <hex_sha> type_string size_as_int
1491
+ A line of the form::
1492
+
1493
+ <hex_sha> type_string size_as_int
1490
1494
1491
1495
:return:
1492
1496
(hex_sha, type_string, size_as_int)
@@ -1576,7 +1580,7 @@ def get_object_data(self, ref: str) -> Tuple[str, str, int, bytes]:
1576
1580
return (hexsha , typename , size , data )
1577
1581
1578
1582
def stream_object_data (self , ref : str ) -> Tuple [str , str , int , "Git.CatFileContentStream" ]:
1579
- """Similar to :meth:`get_object_header `, but returns the data as a stream.
1583
+ """Similar to :meth:`get_object_data `, but returns the data as a stream.
1580
1584
1581
1585
:return:
1582
1586
(hexsha, type_string, size_as_int, stream)
0 commit comments