git_diff_buffers

Directly run a diff between two buffers.

Even more than with git_diff_blobs, comparing two buffer lacks context, so the git_diff_file parameters to the callbacks will be faked a la the rules for git_diff_blobs().

@param old_buffer Raw data for old side of diff, or null for empty @param old_len Length of the raw data for old side of the diff @param old_as_path Treat old buffer as if it had this filename; can be null @param new_buffer Raw data for new side of diff, or null for empty @param new_len Length of raw data for new side of diff @param new_as_path Treat buffer as if it had this filename; can be null @param options Options for diff, or null for default options @param file_cb Callback for "file"; made once if there is a diff; can be null @param binary_cb Callback for binary files; can be null @param hunk_cb Callback for each hunk in diff; can be null @param line_cb Callback for each line in diff; can be null @param payload Payload passed to each callback function @return 0 on success, non-zero callback return value, or error code

extern (C) nothrow @nogc
int
git_diff_buffers

Meta