-
Notifications
You must be signed in to change notification settings - Fork 698
Closed
Labels
Description
If you look at the argument list here for Diff.blobToBuffer: http://www.nodegit.org/api/diff/
And then compare that to the argument list that's actually exposed in the code;
Line 61 in 83f6aff
| Diff.blobToBuffer= function( |
They're different, with the actual API lacking the arguments buffer_len (and actually computing this value itself) and payload.
I'd submit a fix the documentation or the API, but I wasn't sure which one was the buggy one - seems to me like computing buffer_len inside blobToBuffer is intentional, but it also seems odd to me (e.g. what happens if the buffer passed in isn't UTF-8? The current code assumes that it is, and I imagine it would compute an incorrect length for non UTF-8 buffers.)
Reactions are currently unavailable