Ggit.CloneOptions¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ggit.CloneOptions(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Represents the options used when cloning.
- classmethod new()¶
- Returns:
a newly allocated
Ggit.CloneOptions.- Return type:
Creates a new
Ggit.CloneOptions.
- get_fetch_options()¶
- Returns:
the fetch options or
None.- Return type:
Get the fetch options object or
Noneif not set.
- get_is_bare()¶
-
Gets if the repository will be bare.
- get_local()¶
- Returns:
the local clone setting.
- Return type:
Get setting for bypassing the git-aware transport when cloning. The default auto setting bypasses the git-aware transport for local paths, but use a normal fetch for file:// URIs.
- set_checkout_branch(checkout_branch)¶
-
Gives the name of the branch to checkout.
Nonemeans use the remote’s HEAD.
- set_fetch_options(fetch_options)¶
- Parameters:
fetch_options (
Ggit.FetchOptionsorNone) – aGgit.FetchOptionsorNone.
Set the fetch options object.
- set_is_bare(bare)¶
-
Sets whether to clone a bare repository.
- set_local(local)¶
- Parameters:
local (
Ggit.CloneLocal) – the local clone setting.
Set setting for bypassing the git-aware transport when cloning. The default auto setting bypasses the git-aware transport for local paths, but use a normal fetch for file:// URIs.
- do_create_remote(repository, name, url) virtual¶
- Parameters:
repository (
Ggit.Repository) – the repository.name (
str) – the remote name.url (
str) – the remote url.
- Returns:
a
Ggit.RemoteorNonein case of an error.- Return type:
Ggit.RemoteorNone
- do_create_repository(path, is_bare) virtual¶
- Parameters:
- Returns:
a
Ggit.RepositoryorNonein case of an error.- Return type: