Skip to content

Fix docs for git_odb_stream_read return value.#6837

Merged
ethomson merged 1 commit into
libgit2:mainfrom
ehuss:stream_read_return_docs
Jun 25, 2024
Merged

Fix docs for git_odb_stream_read return value.#6837
ethomson merged 1 commit into
libgit2:mainfrom
ehuss:stream_read_return_docs

Conversation

@ehuss
Copy link
Copy Markdown
Contributor

@ehuss ehuss commented Jun 22, 2024

I believe the original docs for the return value of git_odb_stream_read might be incorrect. It currently says that it returns 0 on success. However, that means there would be no way to know how many bytes were actually saved to the buffer. loose_backend__readstream_read appears to return the total number of bytes read. I don't know if there are any other backends that implement readstream (I don't see any).

@ethomson
Copy link
Copy Markdown
Member

Good catch, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants