Skip to content

Commit 7204cc1

Browse files
committed
Further clarify Diffable.diff docstring
Along the lines of ed6ead9.
1 parent 62c0823 commit 7204cc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git/diff.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ def diff(
157157
158158
:note:
159159
On a bare repository, `other` needs to be provided as
160-
:class:`~Diffable.Index`, or as :class:`~git.objects.tree.Tree` or
161-
:class:`~git.objects.commit.Commit`, or a git command error will occur.
160+
:class:`~Diffable.Index`, or as an instance of
161+
:class:`~git.objects.tree.Tree` or :class:`~git.objects.commit.Commit`, or a
162+
git command error will occur.
162163
"""
163164
args: List[Union[PathLike, Diffable, Type["Diffable.Index"]]] = []
164165
args.append("--abbrev=40") # We need full shas.

0 commit comments

Comments
 (0)