Remote
Object Hierarchy:
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