Ggit.CommitParents

g GObject.Object GObject.Object Ggit.CommitParents Ggit.CommitParents GObject.Object->Ggit.CommitParents

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (commit)

get (idx)

get_id (idx)

get_size ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

commit

Ggit.Commit

r/w/co

The commit for the parents collection

size

int

r

The size of the parents collection

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Ggit.CommitParents(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ggit.CommitParentsClass

Represents the parents of a commit object.

classmethod new(commit)
Parameters:

commit (Ggit.Commit) –

Return type:

Ggit.CommitParents

get(idx)
Parameters:

idx (int) – the parent index.

Returns:

a Ggit.Commit.

Return type:

Ggit.Commit or None

Get the Ggit.Commit of a parent.

get_id(idx)
Parameters:

idx (int) – the parent index.

Returns:

a Ggit.OId.

Return type:

Ggit.OId or None

Get the Ggit.OId of a parent.

get_size()
Returns:

the number of parents.

Return type:

int

Get the number of parents in the parents collection.

Property Details

Ggit.CommitParents.props.commit
Name:

commit

Type:

Ggit.Commit

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The commit for the parents collection

Ggit.CommitParents.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE

The size of the parents collection