Foundry.VcsDiffHunk¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
|||
r |
|||
r |
|||
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.VcsDiffHunk(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- dup_header()¶
-
The header for the hunk which is the part after the second “@@”.
New in version 1.1.
- get_new_lines()¶
- Returns:
the number of lines in the new file
- Return type:
Gets the number of lines in the new file for this hunk.
New in version 1.1.
- get_new_start()¶
- Returns:
the starting line number in the new file
- Return type:
Gets the starting line number in the new file for this hunk.
New in version 1.1.
- get_old_lines()¶
- Returns:
the number of lines in the old file
- Return type:
Gets the number of lines in the old file for this hunk.
New in version 1.1.
- get_old_start()¶
- Returns:
the starting line number in the old file
- Return type:
Gets the starting line number in the old file for this hunk.
New in version 1.1.
- list_lines()¶
- Returns:
a [class`Dex`.Future] that resolves to an [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffLine].
- Return type:
List the lines within a hunk.
- do_dup_header() virtual¶
-
The header for the hunk which is the part after the second “@@”.
New in version 1.1.
- do_get_new_lines() virtual¶
- Returns:
the number of lines in the new file
- Return type:
Gets the number of lines in the new file for this hunk.
New in version 1.1.
- do_get_new_start() virtual¶
- Returns:
the starting line number in the new file
- Return type:
Gets the starting line number in the new file for this hunk.
New in version 1.1.
- do_get_old_lines() virtual¶
- Returns:
the number of lines in the old file
- Return type:
Gets the number of lines in the old file for this hunk.
New in version 1.1.
- do_get_old_start() virtual¶
- Returns:
the starting line number in the old file
- Return type:
Gets the starting line number in the old file for this hunk.
New in version 1.1.
- do_list_lines() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to an [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffLine].
- Return type:
List the lines within a hunk.