Top | ![]() |
![]() |
![]() |
![]() |
gint | (*GgitRemoteListCallback) () |
GgitRemote * | ggit_remote_new () |
void | ggit_remote_save () |
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 () |
void | ggit_remote_add_fetch_spec () |
void | ggit_remote_add_push_spec () |
GgitRemoteHead ** | ggit_remote_list () |
gboolean | ggit_remote_is_valid_url () |
gboolean | ggit_remote_is_supported_url () |
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.
void ggit_remote_save (GgitRemote *remote
,GError **error
);
Saves a remote to its repository's configuration.
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
,gboolean direction
,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. |
|
error |
a GError for error reporting, or |
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.
void ggit_remote_add_fetch_spec (GgitRemote *remote
,const gchar *fetch_spec
,GError **error
);
Sets remote
's fetch spec to fetch_spec
.
remote |
a GgitRemote. |
|
fetch_spec |
the fetch refspec. |
|
error |
a GError for error reporting, or |
void ggit_remote_add_push_spec (GgitRemote *remote
,const gchar *push_spec
,GError **error
);
Sets remote
's push spec to fetch_spec
.
remote |
a GgitRemote. |
|
push_spec |
the push refspec. |
|
error |
a GError for error reporting, or |
GgitRemoteHead ** ggit_remote_list (GgitRemote *remote
,GError **error
);
Get a list of refs at the remote.
gboolean
ggit_remote_is_valid_url (const gchar *url
);
Checks if url
is a valid remote URL.
gboolean
ggit_remote_is_supported_url (const gchar *url
);
Checks if url
is a supported remote URL.
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.