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

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
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy