Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit7204cc1

Browse files
committed
Further clarify Diffable.diff docstring
Along the lines ofed6ead9.
1 parent62c0823 commit7204cc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎git/diff.py

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp