| Top |
| gint | (*GgitRemoteListCallback) () |
| GgitRemote * | ggit_remote_new () |
| const gchar * | ggit_remote_get_name () |
| const gchar * | ggit_remote_get_url () |
| void | ggit_remote_connect () |
| gboolean | ggit_remote_get_connected () |
| void | ggit_remote_disconnect () |
| GgitRemoteHead ** | ggit_remote_list () |
| GgitOId * | ggit_remote_head_get_local_oid () |
| const gchar * | ggit_remote_head_get_name () |
| GgitOId * | ggit_remote_head_get_oid () |
| GType | ggit_remote_head_get_type () |
| gboolean | ggit_remote_head_is_local () |
| GgitRemoteHead * | ggit_remote_head_ref () |
| void | ggit_remote_head_unref () |
GBoxed ╰── GgitRemoteHead GEnum ╰── GgitRemoteDownloadTagsType GObject ╰── GgitObjectFactoryBase ╰── GgitNative ╰── GgitRemote
gint (*GgitRemoteListCallback) (const gchar *name,GgitOId *oid,GgitOId *loid,gboolean local,gpointer user_data);
The type of the callback functions for listing the references of a
GgitRemote. See ggit_remote_list().
GgitRemote * ggit_remote_new (GgitRepository *repository,const gchar *name,const gchar *url,GError **error);
Creates a remote with the default refspecs in memory. You can use this when you have a URL instead of a remote's name.
const gchar *
ggit_remote_get_name (GgitRemote *remote);
Gets the remote's name.
const gchar *
ggit_remote_get_url (GgitRemote *remote);
Gets the remote's url.
void ggit_remote_connect (GgitRemote *remote,GgitDirection direction,GgitRemoteCallbacks *callbacks,GgitProxyOptions *proxy_options,const gchar * const *custom_headers,GError **error);
Opens a connection to a remote. The transport is selected based on the URL. The direction argument is due to a limitation of the git protocol (over TCP or SSH) which starts up a specific binary which can only do the one or the other.
remote |
a GgitRemote. |
|
direction |
whether you want to receive or send data. |
|
callbacks |
the callbacks to use for this connection. |
|
proxy_options |
the proxy options. |
[allow-none] |
custom_headers |
extra HTTP headers to use in this connection. |
[allow-none] |
error |
gboolean
ggit_remote_get_connected (GgitRemote *remote);
Check whether remote
is connected.
void
ggit_remote_disconnect (GgitRemote *remote);
Closes the connection to the remote and frees the underlying transport.
GgitRemoteHead ** ggit_remote_list (GgitRemote *remote,GError **error);
Get a list of refs at the remote.
GgitOId *
ggit_remote_head_get_local_oid (GgitRemoteHead *remote_head);
Get the local oid of the remote head.
const gchar *
ggit_remote_head_get_name (GgitRemoteHead *remote_head);
Get the remote head name.
GgitOId *
ggit_remote_head_get_oid (GgitRemoteHead *remote_head);
Get the remote oid of the remote head.
gboolean
ggit_remote_head_is_local (GgitRemoteHead *remote_head);
Get whether the remote head is local.