Foundry.VcsDelta¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.VcsDelta(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- get_status()¶
- Return type:
- list_hunks()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffHunk].
- Return type:
Queries the VCS for the list of hunks that are part of this delta.
New in version 1.1.
- serialize(context_lines)¶
- Parameters:
context_lines (
int) – the number of context lines to include- Returns:
a [class`Dex`.Future] that resolves to a string containing the serialized diff
- Return type:
Serializes the delta to a unified diff format string.
New in version 1.1.
- do_get_status() virtual¶
- Return type:
- do_list_hunks() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffHunk].
- Return type:
Queries the VCS for the list of hunks that are part of this delta.
New in version 1.1.