Top | Description | Object Hierarchy | ![]() |
![]() |
![]() |
![]() |
GgitCloneOptions; GgitCloneOptions * ggit_clone_options_copy (GgitCloneOptions *clone_options
); void ggit_clone_options_free (GgitCloneOptions *clone_options
); GgitCloneOptions * ggit_clone_options_new (void
); gboolean ggit_clone_options_get_is_bare (GgitCloneOptions *options
); void ggit_clone_options_set_is_bare (GgitCloneOptions *options
,gboolean bare
); const gchar * ggit_clone_options_get_remote_name (GgitCloneOptions *options
); void ggit_clone_options_set_remote_name (GgitCloneOptions *options
,const gchar *remote_name
); const gchar * ggit_clone_options_get_checkout_branch (GgitCloneOptions *options
); void ggit_clone_options_set_checkout_branch (GgitCloneOptions *options
,const gchar *checkout_branch
); GgitRemoteCallbacks * ggit_clone_options_get_remote_callbacks (GgitCloneOptions *options
); void ggit_clone_options_set_remote_callbacks (GgitCloneOptions *options
,GgitRemoteCallbacks *callbacks
);
typedef struct _GgitCloneOptions GgitCloneOptions;
Represents the options used when cloning.
GgitCloneOptions * ggit_clone_options_copy (GgitCloneOptions *clone_options
);
Copies clone_options
into a newly allocated GgitCloneOptions.
|
a GgitCloneOptions. |
Returns : |
a newly allocated GgitCloneOptions. [transfer full] |
void ggit_clone_options_free (GgitCloneOptions *clone_options
);
Frees clone_options
.
|
a GgitCloneOptions. |
GgitCloneOptions * ggit_clone_options_new (void
);
Creates a new GgitCloneOptions.
Returns : |
a newly allocated GgitCloneOptions. |
gboolean ggit_clone_options_get_is_bare (GgitCloneOptions *options
);
Gets if the repository will be bare.
|
a GgitCloneOptions. |
Returns : |
TRUE to clone a bare repository. |
void ggit_clone_options_set_is_bare (GgitCloneOptions *options
,gboolean bare
);
Sets whether to clone a bare repository.
|
a GgitCloneOptions. |
|
TRUE to clone a bare repository. |
const gchar * ggit_clone_options_get_remote_name (GgitCloneOptions *options
);
Gets the name given to the "origin" remote. The default is "origin".
|
a GgitCloneOptions. |
Returns : |
the name given to the "origin" remote. The default is "origin". |
void ggit_clone_options_set_remote_name (GgitCloneOptions *options
,const gchar *remote_name
);
Sets the name given to the "origin" remote.
|
a GgitCloneOptions. |
|
the name given to the "origin" remote. [allow-none] |
const gchar * ggit_clone_options_get_checkout_branch
(GgitCloneOptions *options
);
Gets the name of the branch to checkout or NULL
.
|
a GgitCloneOptions. |
Returns : |
the name of the branch to checkout or NULL . |
void ggit_clone_options_set_checkout_branch (GgitCloneOptions *options
,const gchar *checkout_branch
);
Gives the name of the branch to checkout. NULL
means
use the remote's HEAD.
|
a GgitCloneOptions. |
|
the name of the branch to checkout or NULL . [allow-none]
|
GgitRemoteCallbacks * ggit_clone_options_get_remote_callbacks
(GgitCloneOptions *options
);
Get the remote callbacks object or NULL
if not set.
|
a GgitCloneOptions. |
Returns : |
the remote callbacks or NULL . [transfer none]
|
void ggit_clone_options_set_remote_callbacks (GgitCloneOptions *options
,GgitRemoteCallbacks *callbacks
);
Set the remote callbacks object.
|
a GgitCloneOptions. |
|
a GgitRemoteCallbacks or NULL . [allow-none]
|