git_blame_buffer

Get blame data for a file that has been modified in memory. The reference parameter is a pre-calculated blame for the in-odb history of the file. This means that once a file blame is completed (which can be expensive), updating the buffer blame is very fast.

Lines that differ between the buffer and the committed version are marked as having a zero OID for their final_commit_id.

@param out_ pointer that will receive the resulting blame data @param reference cached blame from the history of the file (usually the output from git_blame_file) @param buffer the (possibly) modified contents of the file @param buffer_len number of valid bytes in the buffer @return 0 on success, or an error code. (use git_error_last for information about the error)

extern (C) nothrow @nogc
int
git_blame_buffer
(,,
const(char)* buffer
,
size_t buffer_len
)

Meta