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

Commitba878ef

Browse files
committed
Reword partial_to_complete_sha_hex note
The git.db.partial_to_complete_sha_hex docstring refers to"AmbiguousObjects", suggesting the existence of an AmbiguousObjecttype (or an AmbiguousObjects type).Since there appears to be no such type in GitPython (or in gitdb),this seems to have been written in reference to the conditionexpressed by the AmbiguousObjectName exception, which the notesays is not currently able to be raised (such that BadObject israised instead) in situations where it would apply.Since the connection to that exeception is already clear fromcontext, this commit changes the wording to "ambiguous objects" toavoid being misread as a reference to a Python class of ambiguousobjects.
1 parent8bb882e commitba878ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def partial_to_complete_sha_hex(self, partial_hexsha: str) -> bytes:
5959
:raise BadObject:
6060
6161
:note: Currently we only raise :class:`BadObject` as git does not communicate
62-
AmbiguousObjects separately.
62+
ambiguous objects separately.
6363
"""
6464
try:
6565
hexsha,_typename,_size=self._git.get_object_header(partial_hexsha)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp