from_buffer


Description:

public Blame? from_buffer (uint8[] buffer) throws Error

Get blame data for a file that has been modified in memory.

this 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 expensitve), updating the buffer blame is very fast.

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

Parameters:

this

a Blame.

buffer

the contents of the file.

buffer_length

the length of the buffer.

Returns:

a Blame or null.