Ggit.PushOptions

g GObject.Object GObject.Object Ggit.PushOptions Ggit.PushOptions GObject.Object->Ggit.PushOptions

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_parallelism ()

get_remote_callbacks ()

set_parallelism (parallelism)

set_remote_callbacks (callbacks)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

callbacks

Ggit.RemoteCallbacks

r/w

Callbacks

parallelism

int

r/w/c

Parallelism

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Ggit.PushOptions(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Ggit.PushOptionsClass

Represents a git push options.

classmethod new()
Returns:

a Ggit.PushOptions or None.

Return type:

Ggit.PushOptions or None

Create a new push options object.

get_parallelism()
Returns:

the number of parallel threads, or 0 for auto-detect.

Return type:

int

Get the number of parallel threads to use when creating the pack file to push. The special value 0 indicates that the number of threads will be automatically detected.

get_remote_callbacks()
Returns:

the object’s id or None.

Return type:

Ggit.RemoteCallbacks or None

gets the remote callbacks object

set_parallelism(parallelism)
Parameters:

parallelism (int) – the number of threads, or 0 for auto-detect.

Set the number of parallel threads to use when creating the pack file to push. The special value 0 can be specified for parallelism indicating that the number of threads will be automatically detected.

set_remote_callbacks(callbacks)
Parameters:

callbacks (Ggit.RemoteCallbacks) – the Ggit.RemoteCallbacks

Set the remote callbacks for the push options

Property Details

Ggit.PushOptions.props.callbacks
Name:

callbacks

Type:

Ggit.RemoteCallbacks

Default Value:

None

Flags:

READABLE, WRITABLE

Callbacks

Ggit.PushOptions.props.parallelism
Name:

parallelism

Type:

int

Default Value:

1

Flags:

READABLE, WRITABLE, CONSTRUCT

Parallelism