Remote
Object Hierarchy:
Ggit.Remote
Ggit.Remote
Ggit.Remote
Ggit.Native
Ggit.Native
Ggit.Native->Ggit.Remote
Ggit.ObjectFactoryBase
Ggit.ObjectFactoryBase
Ggit.ObjectFactoryBase->Ggit.Native
GLib.Object
GLib.Object
GLib.Object->Ggit.ObjectFactoryBase
Description:
[
CCode ( type_id =
"ggit_remote_get_type ()" ) ]
public class Remote :
Native
Content:
Creation methods:
Methods:
public void connect (Direction direction, RemoteCallbacks callbacks, ProxyOptions ? proxy_options, string ? custom_headers) throws Error
Opens a connection to a remote.
public void disconnect ()
Closes the connection to the remote and frees the underlying
transport.
public bool download (string []? specs, FetchOptions fetch_options) throws Error
Connect to the remote if not yet connected, negotiate with the remote
about which objects are missing and download the resulting packfile and its index.
public bool get_connected ()
Check whether this is connected.
public string []? get_fetch_specs () throws Error
Get the list of fetch refspecs for the given remote.
public unowned string ? get_name ()
Gets the remote's name.
public Repository ? get_owner ()
Gets the repository where this
resides.
public string []? get_push_specs () throws Error
Get the list of push refspecs for the given remote.
public unowned string ? get_url ()
Gets the remote's url.
public RemoteHead []? list () throws Error
Get a list of refs at the remote.
public void prune (RemoteCallbacks callbacks) throws Error
Prune tracking refs that are no longer present on remote.
public bool push (string []? specs, PushOptions push_options) throws Error
Connect to the remote if not yet connected, negotiate with the remote
about which objects are missing, create a packfile with the missing objects and send it.
public bool update_tips (RemoteCallbacks callbacks, bool update_fetch_head, RemoteDownloadTagsType tags_type, string ? message) throws Error
Update tips to the new state.
public bool upload (string []? specs, PushOptions push_options) throws Error
Create a packfile and send it to the server
Inherited Members:
All known members inherited from class Ggit.Native
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref