Top | ![]() |
![]() |
![]() |
![]() |
GgitCloneOptions * | ggit_clone_options_copy () |
void | ggit_clone_options_free () |
GgitCloneOptions * | ggit_clone_options_new () |
gboolean | ggit_clone_options_get_is_bare () |
void | ggit_clone_options_set_is_bare () |
const gchar * | ggit_clone_options_get_remote_name () |
void | ggit_clone_options_set_remote_name () |
const gchar * | ggit_clone_options_get_checkout_branch () |
void | ggit_clone_options_set_checkout_branch () |
GgitRemoteCallbacks * | ggit_clone_options_get_remote_callbacks () |
void | ggit_clone_options_set_remote_callbacks () |
GgitCloneOptions *
ggit_clone_options_copy (GgitCloneOptions *clone_options
);
Copies clone_options
into a newly allocated GgitCloneOptions.
void
ggit_clone_options_free (GgitCloneOptions *clone_options
);
Frees clone_options
.
GgitCloneOptions *
ggit_clone_options_new (void
);
Creates a new GgitCloneOptions.
gboolean
ggit_clone_options_get_is_bare (GgitCloneOptions *options
);
Gets if the repository will be bare.
void ggit_clone_options_set_is_bare (GgitCloneOptions *options
,gboolean bare
);
Sets whether 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".
void ggit_clone_options_set_remote_name (GgitCloneOptions *options
,const gchar *remote_name
);
Sets the name given to the "origin" remote.
const gchar *
ggit_clone_options_get_checkout_branch
(GgitCloneOptions *options
);
Gets 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.
GgitRemoteCallbacks *
ggit_clone_options_get_remote_callbacks
(GgitCloneOptions *options
);
Get the remote callbacks object or NULL
if not set.
void ggit_clone_options_set_remote_callbacks (GgitCloneOptions *options
,GgitRemoteCallbacks *callbacks
);
Set the remote callbacks object.