Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7204cc1

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

1 file changed

+3-2Lines changed: 3 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/diff.py‎

Copy file name to clipboardExpand all lines: git/diff.py
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.