Improve Sphinx role usage, including linking Git manpages by EliahKagan · Pull Request #1879 · gitpython-developers/GitPython · GitHub
Skip to content
Merged
89 changes: 44 additions & 45 deletions doc/source/conf.py
9 changes: 5 additions & 4 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,8 @@ def working_dir(self) -> Union[None, PathLike]:
def version_info(self) -> Tuple[int, ...]:
"""
:return: Tuple with integers representing the major, minor and additional
version numbers as parsed from ``git version``. Up to four fields are used.
version numbers as parsed from :manpage:`git-version(1)`. Up to four fields
are used.

This value is generated on demand and is cached.
"""
Expand Down Expand Up @@ -1038,9 +1039,9 @@ def execute(
3. Deeper descendants do not receive signals, though they may sometimes
terminate as a consequence of their parent processes being killed.
4. `kill_after_timeout` uses ``SIGKILL``, which can have negative side
effects on a repository. For example, stale locks in case of ``git gc``
could render the repository incapable of accepting changes until the lock
is manually removed.
effects on a repository. For example, stale locks in case of
:manpage:`git-gc(1)` could render the repository incapable of accepting
changes until the lock is manually removed.

:param with_stdout:
If ``True``, default ``True``, we open stdout on the created process.
Expand Down
2 changes: 1 addition & 1 deletion git/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def get_config_path(config_level: Lit_config_levels) -> str:
class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder):
"""Implements specifics required to read git style configuration files.

This variation behaves much like the ``git config`` command, such that the
This variation behaves much like the :manpage:`git-config(1)` command, such that the
configuration will be read on demand based on the filepath given during
initialization.

Expand Down
2 changes: 1 addition & 1 deletion git/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def partial_to_complete_sha_hex(self, partial_hexsha: str) -> bytes:
:raise gitdb.exc.BadObject:

:note:
Currently we only raise :class:`~gitdb.exc.BadObject` as git does not
Currently we only raise :exc:`~gitdb.exc.BadObject` as git does not
communicate ambiguous objects separately.
"""
try:
Expand Down
6 changes: 3 additions & 3 deletions git/diff.py
Loading