Compute a similarity signature for a text buffer
If you have passed the option GIT_HASHSIG_IGNORE_WHITESPACE, then the whitespace will be removed from the buffer while it is being processed, modifying the buffer in place. Sorry about that!
The input buffer.
The input buffer size.
0 on success, GIT_EBUFS if the buffer doesn't contain enough data to compute a valid signature (unless GIT_HASHSIG_ALLOW_SMALL_FILES is set), or error code.