Skip to content

Commit c0a27c0

Browse files
committed
Better document overrides in GitCmdObjectDB
1 parent 6565742 commit c0a27c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git/db.py

+2-1
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
def info(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
return OInfo(hex_to_bin(hexsha), typename, size)
4344

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

0 commit comments

Comments
 (0)