| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6565742 commit c0a27c0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,11 +38,12 @@ def __init__(self, root_path: PathLike, git: "Git") -> None: | |||
| 38 | 38 | self._git = git | |
| 39 | 39 | ||
| 40 | 40 | def info(self, binsha: bytes) -> OInfo: | |
| 41 | + """Get a git object header (using git itself).""" | ||
| 41 | 42 | hexsha, typename, size = self._git.get_object_header(bin_to_hex(binsha)) | |
| 42 | 43 | return OInfo(hex_to_bin(hexsha), typename, size) | |
| 43 | 44 | ||
| 44 | 45 | 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).""" | ||
| 46 | 47 | hexsha, typename, size, stream = self._git.stream_object_data(bin_to_hex(binsha)) | |
| 47 | 48 | return OStream(hex_to_bin(hexsha), typename, size, stream) | |
| 48 | 49 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments