Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix some underindented portions of docstrings
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
commit e984bfebd9f1934b9810ac6cccb1bb803c64dd21
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