Foundry.VcsBlame¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.VcsBlame(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- dup_file()¶
- Returns:
a [class`Foundry`.VcsFile]
- Return type:
Gets the underlying file being blamed
- get_n_lines()¶
- Returns:
A value <
GObject.G_MAXUINT- Return type:
Gets the number of lines contained in the blame.
- query_line(line)¶
- Parameters:
line (
int) – the line number, starting from 0- Returns:
a [class`Foundry`.VcsSignature] or
Noneif there is no commit related to the changes on line.- Return type:
Queries the signature of the commit that modified line.
- update(bytes)¶
- Parameters:
bytes (
GLib.BytesorNone) – data for the blame orNoneto reset to file defaults- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
Update the blame using the contents in bytes.
If bytes is
Nonethen the underlying file contents will be used as if no modifications were provided.
- do_get_n_lines() virtual¶
- Returns:
A value <
GObject.G_MAXUINT- Return type:
Gets the number of lines contained in the blame.
- do_query_line(line) virtual¶
- Parameters:
line (
int) – the line number, starting from 0- Returns:
a [class`Foundry`.VcsSignature] or
Noneif there is no commit related to the changes on line.- Return type:
Queries the signature of the commit that modified line.
- do_update(bytes) virtual¶
- Parameters:
bytes (
GLib.BytesorNone) – data for the blame orNoneto reset to file defaults- Returns:
a [class`Dex`.Future] that resolves to any value or rejects with error
- Return type:
Update the blame using the contents in bytes.
If bytes is
Nonethen the underlying file contents will be used as if no modifications were provided.
Property Details¶
- Foundry.VcsBlame.props.file¶
- Name:
file- Type:
- Default Value:
- Flags: