fix chunk create return values #67

Merged
jezell merged 1 commits from chunk-create-fix into master 2014-03-17 10:04:05 -05:00
jezell commented 2014-03-17 00:13:44 -05:00 (Migrated from github.com)

libgit2 docs look incorrect:
http://libgit2.github.com/libgit2/#HEAD/group/blob/git_blob_create_fromchunks

"When there is no more data to stream, callback should return

  1. This will prevent it from being invoked anymore."

Testing and a look at blob.c seems to confirm result should be 0 when there is no more data, -1 if error, and otherwise length of data copied to buffer.

libgit2 docs look incorrect: http://libgit2.github.com/libgit2/#HEAD/group/blob/git_blob_create_fromchunks "When there is no more data to stream, callback should return 1. This will prevent it from being invoked anymore." Testing and a look at blob.c seems to confirm result should be 0 when there is no more data, -1 if error, and otherwise length of data copied to buffer.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#67
No description provided.