Foundry.GitCloner

g Foundry.GitCloner Foundry.GitCloner GObject.Object GObject.Object GObject.Object->Foundry.GitCloner

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

clone (pty_fd, operation)

dup_author_email ()

dup_author_name ()

dup_directory ()

dup_remote_branch_name ()

dup_uri ()

get_bare ()

set_author_email (author_email)

set_author_name (author_name)

set_bare (bare)

set_directory (directory)

set_remote_branch_name (remote_branch_name)

set_uri (uri)

validate ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

author-email

str

r/w/en

author-name

str

r/w/en

bare

bool

r/w/en

directory

Gio.File

r/w/en

remote-branch-name

str

r/w/en

uri

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Foundry.GitCloner(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Foundry.GitClonerClass

classmethod new()
Return type:

Foundry.GitCloner

clone(pty_fd, operation)
Parameters:
Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error

Return type:

Dex.Future

pty_fd is copied and may be closed after calling this function.

dup_author_email()
Return type:

str

dup_author_name()
Return type:

str

dup_directory()
Return type:

Gio.File or None

dup_remote_branch_name()
Return type:

str

dup_uri()
Return type:

str

get_bare()
Return type:

bool

If [property`Foundry`.GitCloner:directory] should be used as the destination directory instead of a .git subdirectory.

set_author_email(author_email)
Parameters:

author_email (str) –

set_author_name(author_name)
Parameters:

author_name (str) –

set_bare(bare)
Parameters:

bare (bool) –

set_directory(directory)
Parameters:

directory (Gio.File) –

set_remote_branch_name(remote_branch_name)
Parameters:

remote_branch_name (str) –

set_uri(uri)
Parameters:

uri (str) –

validate()
Returns:

a [class`Dex`.Future] that resolves to any value or rejects with error

Return type:

Dex.Future

Validates the values of the cloner.

Property Details

Foundry.GitCloner.props.author_email
Name:

author-email

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.GitCloner.props.author_name
Name:

author-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.GitCloner.props.bare
Name:

bare

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.GitCloner.props.directory
Name:

directory

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.GitCloner.props.remote_branch_name
Name:

remote-branch-name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Foundry.GitCloner.props.uri
Name:

uri

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY