| libgit2-glib Reference Manual | ||||
|---|---|---|---|---|
| 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); void ggit_clone_options_set_fetch_progress_callback (GgitCloneOptions *options,GgitTransferProgressCallback callback,gpointer user_data); 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_push_url (GgitCloneOptions *options); void ggit_clone_options_set_push_url (GgitCloneOptions *options,const gchar *push_url); const gchar * ggit_clone_options_get_fetch_spec (GgitCloneOptions *options); void ggit_clone_options_set_fetch_spec (GgitCloneOptions *options,const gchar *fetch_spec); const gchar * ggit_clone_options_get_push_spec (GgitCloneOptions *options); void ggit_clone_options_set_push_spec (GgitCloneOptions *options,const gchar *push_spec); void ggit_clone_options_set_cred_acquire_callback (GgitCloneOptions *options,GgitCredAcquireCallback callback,gpointer user_data); GgitRemoteDownloadTagsType ggit_clone_options_get_remote_auto_tag (GgitCloneOptions *options); void ggit_clone_options_set_remote_auto_tag (GgitCloneOptions *options,GgitRemoteDownloadTagsType remote_auto_tag); const gchar * ggit_clone_options_get_checkout_branch (GgitCloneOptions *options); void ggit_clone_options_set_checkout_branch (GgitCloneOptions *options,const gchar *checkout_branch);
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. |
void ggit_clone_options_set_fetch_progress_callback (GgitCloneOptions *options,GgitTransferProgressCallback callback,gpointer user_data);
Sets the callback for fetch progress. Be aware that this is called inline with network and indexing operations, so performance may be affected.
|
a GgitCloneOptions. |
|
callback for fetch progress. [allow-none][scope call][closure user_data] |
|
callback user data. |
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_push_url (GgitCloneOptions *options);
Gets the URL to be used for pushing or NULL.
|
a GgitCloneOptions. |
Returns : |
the URL to be used for pushing or NULL. |
void ggit_clone_options_set_push_url (GgitCloneOptions *options,const gchar *push_url);
Sets the URL to be used for pushing. NULL means use the fetch url.
|
a GgitCloneOptions. |
|
the URL to be used for pushing. NULL means use the fetch url. [allow-none]
|
const gchar * ggit_clone_options_get_fetch_spec (GgitCloneOptions *options);
Gets the fetch specification to be used or NULL.
|
a GgitCloneOptions. |
Returns : |
the fetch specification to be used for fetching or NULL. |
void ggit_clone_options_set_fetch_spec (GgitCloneOptions *options,const gchar *fetch_spec);
Sets the fetch specification to be used for fetching. NULL
results in the same behavior as GGIT_REMOTE_DEFAULT_FETCH.
|
a GgitCloneOptions. |
|
the fetch specification to be used for fetching or NULL. [allow-none]
|
const gchar * ggit_clone_options_get_push_spec (GgitCloneOptions *options);
Gets the fetch specification to be used for pushing or NULL.
|
a GgitCloneOptions. |
Returns : |
the fetch specification to be used for pushing or NULL. |
void ggit_clone_options_set_push_spec (GgitCloneOptions *options,const gchar *push_spec);
Sets fetch specification to be used for pushing. NULL means
use the same spec as for fetching.
|
a GgitCloneOptions. |
|
the fetch specification to be used for pushing or NULL. [allow-none]
|
void ggit_clone_options_set_cred_acquire_callback (GgitCloneOptions *options,GgitCredAcquireCallback callback,gpointer user_data);
Sets the callback to be used if credentials are required during the initial fetch.
|
a GgitCloneOptions. |
|
callback if credentials are required. [allow-none][scope call][closure user_data] |
|
callback user data. |
GgitRemoteDownloadTagsType ggit_clone_options_get_remote_auto_tag
(GgitCloneOptions *options);
Gets the auto tag setting before the initial fetch.
The default is GGIT_REMOTE_DOWNLOAD_TAGS_ALL.
|
a GgitCloneOptions. |
Returns : |
a GgitRemoteDownloadTagsType |
void ggit_clone_options_set_remote_auto_tag (GgitCloneOptions *options,GgitRemoteDownloadTagsType remote_auto_tag);
Specifies the auto tag setting before the initial fetch.
|
a GgitCloneOptions. |
|
a GgitRemoteDownloadTagsType. |
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]
|