Ggit.Blame¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Ggit.Blame(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents a blame.
- classmethod get_flags(blame_options)¶
- Parameters:
blame_options (
Ggit.BlameOptions
) – aGgit.BlameOptions
.- Returns:
- Return type:
Get the blame options flags.
- classmethod set_flags(blame_options, flags)¶
- Parameters:
blame_options (
Ggit.BlameOptions
) – aGgit.BlameOptions
.flags (
Ggit.BlameFlags
) – aGgit.BlameFlags
.
Set the blame options flags.
- from_buffer(buffer)¶
- Parameters:
buffer (
bytes
) – the contents of the file.- Raises:
- Returns:
a
Ggit.Blame
orNone
.- Return type:
Ggit.Blame
orNone
Get blame data for a file that has been modified in memory. self 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
Ggit.BlameHunk.get_final_commit_id
.