Skip to content

Commit 0d6c68a

Browse files
committed
Fix ref to git.refresh in refresh methods' docstrings
1 parent 7fbfc77 commit 0d6c68a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

git/cmd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ def __setstate__(self, d: Dict[str, Any]) -> None:
389389

390390
@classmethod
391391
def refresh(cls, path: Union[None, PathLike] = None) -> bool:
392-
"""This gets called by the refresh function (see the top level ``__init__``).
392+
"""This gets called by the :func:`git.refresh` function.
393+
394+
See the top level ``__init__.py``.
393395
394396
:param path:
395397
Optional path to the git executable. If not absolute, it is resolved

git/remote.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ class FetchInfo(IterableObj):
338338

339339
@classmethod
340340
def refresh(cls) -> Literal[True]:
341-
"""This gets called by the refresh function (see the top level ``__init__``)."""
341+
"""This gets called by the :func:`git.refresh` function.
342+
343+
See the top level ``__init__.py``.
344+
"""
342345
# Clear the old values in _flag_map.
343346
with contextlib.suppress(KeyError):
344347
del cls._flag_map["t"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy