Skip to content

Commit

Permalink
Fix some underindented portions of docstrings
Browse files Browse the repository at this point in the history
A few docstrings had parts that were meant to be indented the
usual four spaces beyond the surrounding indentation, but were
indented only three spaces beyond it instead.
  • Loading branch information
EliahKagan committed Mar 5, 2024
1 parent 9f226fc commit e984bfe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions git/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,10 @@ def __init__(self, working_dir: Union[None, PathLike] = None):
"""Initialize this instance with:
:param working_dir:
Git directory we should work in. If ``None``, we always work in the current
directory as returned by :func:`os.getcwd`.
This is meant to be the working tree directory if available, or the
``.git`` directory in case of bare repositories.
Git directory we should work in. If ``None``, we always work in the current
directory as returned by :func:`os.getcwd`.
This is meant to be the working tree directory if available, or the
``.git`` directory in case of bare repositories.
"""
super().__init__()
self._working_dir = expand_path(working_dir)
Expand Down Expand Up @@ -1103,8 +1103,8 @@ def execute(
:raise git.exc.GitCommandError:
:note:
If you add additional keyword arguments to the signature of this method,
you must update the ``execute_kwargs`` variable housed in this module.
If you add additional keyword arguments to the signature of this method, you
must update the ``execute_kwargs`` variable housed in this module.
"""
# Remove password for the command if present.
redacted_command = remove_password_if_present(command)
Expand Down Expand Up @@ -1438,7 +1438,7 @@ def _call_process(
turns into::
git rev-list max-count 10 --header master
git rev-list max-count 10 --header master
:return:
Same as :meth:`execute`. If no args are given, used :meth:`execute`'s
Expand Down

0 comments on commit e984bfe

Please sign in to comment.