Foundry.VcsDelta

g Foundry.VcsDelta Foundry.VcsDelta GObject.Object GObject.Object GObject.Object->Foundry.VcsDelta

Subclasses:

Foundry.GitDelta

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

dup_new_id ()

dup_new_path ()

dup_old_id ()

dup_old_path ()

get_new_mode ()

get_old_mode ()

get_status ()

list_hunks ()

serialize (context_lines)

Virtual Methods

Inherited:

GObject.Object (7)

do_dup_new_id ()

do_dup_new_path ()

do_dup_old_id ()

do_dup_old_path ()

do_get_new_mode ()

do_get_old_mode ()

do_get_status ()

do_list_hunks ()

do_serialize (context_lines)

Properties

Name

Type

Flags

Short Description

new-path

str

r

old-path

str

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.VcsDelta(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.VcsDeltaClass

dup_new_id()
Return type:

str

dup_new_path()
Return type:

str

dup_old_id()
Return type:

str

dup_old_path()
Return type:

str

get_new_mode()
Return type:

int

get_old_mode()
Return type:

int

get_status()
Return type:

Foundry.VcsDeltaStatus

list_hunks()
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffHunk].

Return type:

Dex.Future

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:

Dex.Future

Serializes the delta to a unified diff format string.

New in version 1.1.

do_dup_new_id() virtual
Return type:

str

do_dup_new_path() virtual
Return type:

str

do_dup_old_id() virtual
Return type:

str

do_dup_old_path() virtual
Return type:

str

do_get_new_mode() virtual
Return type:

int

do_get_old_mode() virtual
Return type:

int

do_get_status() virtual
Return type:

Foundry.VcsDeltaStatus

do_list_hunks() virtual
Returns:

a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.VcsDiffHunk].

Return type:

Dex.Future

Queries the VCS for the list of hunks that are part of this delta.

New in version 1.1.

do_serialize(context_lines) virtual
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:

Dex.Future

Serializes the delta to a unified diff format string.

New in version 1.1.

Property Details

Foundry.VcsDelta.props.new_path
Name:

new-path

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.VcsDelta.props.old_path
Name:

old-path

Type:

str

Default Value:

None

Flags:

READABLE