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

Commitc0a27c0

Browse files
committed
Better document overrides in GitCmdObjectDB
1 parent6565742 commitc0a27c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/db.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ def __init__(self, root_path: PathLike, git: "Git") -> None:
3838
self._git=git
3939

4040
definfo(self,binsha:bytes)->OInfo:
41+
"""Get a git object header (using git itself)."""
4142
hexsha,typename,size=self._git.get_object_header(bin_to_hex(binsha))
4243
returnOInfo(hex_to_bin(hexsha),typename,size)
4344

4445
defstream(self,binsha:bytes)->OStream:
45-
"""For now, all lookup is done bygit itself"""
46+
"""Get git object data as a stream supporting ``read()`` (usinggit itself)."""
4647
hexsha,typename,size,stream=self._git.stream_object_data(bin_to_hex(binsha))
4748
returnOStream(hex_to_bin(hexsha),typename,size,stream)
4849

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp