Top |
Functions
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 () |
Object Hierarchy
GBoxed ╰── GgitRemoteHead GObject ╰── GgitObjectFactoryBase ╰── GgitNative ╰── GgitRemote
Functions
GgitRemoteListCallback ()
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()
.
ggit_remote_new ()
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.
ggit_remote_get_name ()
const gchar *
ggit_remote_get_name (GgitRemote *remote
);
Gets the remote's name.
ggit_remote_get_url ()
const gchar *
ggit_remote_get_url (GgitRemote *remote
);
Gets the remote's url.
ggit_remote_connect ()
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.
Parameters
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 |
a GError for error reporting, or |
ggit_remote_get_connected ()
gboolean
ggit_remote_get_connected (GgitRemote *remote
);
Check whether remote
is connected.
ggit_remote_disconnect ()
void
ggit_remote_disconnect (GgitRemote *remote
);
Closes the connection to the remote and frees the underlying transport.
ggit_remote_list ()
GgitRemoteHead ** ggit_remote_list (GgitRemote *remote
,GError **error
);
Get a list of refs at the remote.
ggit_remote_head_get_local_oid ()
GgitOId *
ggit_remote_head_get_local_oid (GgitRemoteHead *remote_head
);
Get the local oid of the remote head.
ggit_remote_head_get_name ()
const gchar *
ggit_remote_head_get_name (GgitRemoteHead *remote_head
);
Get the remote head name.
ggit_remote_head_get_oid ()
GgitOId *
ggit_remote_head_get_oid (GgitRemoteHead *remote_head
);
Get the remote oid of the remote head.
ggit_remote_head_is_local ()
gboolean
ggit_remote_head_is_local (GgitRemoteHead *remote_head
);
Get whether the remote head is local.