Open a stream to read an object from the ODB
Note that most backends do not support streaming reads because they store their objects as compressed/delta'ed blobs.
It's recommended to use git_odb_read
instead, which is
assured to work on all backends.
The returned stream will be of type GIT_STREAM_RDONLY
and
will have the following methods:
n
bytes from the stream
- stream->free: free the streamThe stream must always be free'd or will leak memory.
pointer where to store the length of the object
0 if the stream was created, error code otherwise