libgit2

remote

Version:
Git remote management functions

Objects

Structs

The callback settings structure

Macros

Enums

Argument to the completion callback which tells it which operation finished

Callbacks

Functions

Add a remote with the default fetch refspec to the repository's configuration calls git_remote_save before returning.

Add a remote with the provided fetch refspec (or default if NULL) to the repository's configuration calls git_remote_save before returning.

Create an anonymous remote

Get the information for a particular remote

Save a remote to its repository's configuration

Create a copy of an existing remote duplicated. Callbacks are not duplicated.

Get the remote's repository

Get the remote's name

Get the remote's url

Get the remote's url for pushing

Set the remote's url

Set the remote's url for pushing

Add a fetch refspec to the remote

Get the remote's list of fetch refspecs

Set the remote's list of fetch refspecs

Add a push refspec to the remote

Get the remote's list of push refspecs

Set the remote's list of push refspecs

Clear the refspecs

Get the number of refspecs for a remote

Get a refspec from the remote

Open a connection to a remote

Get a list of refs at the remote

Download and index the packfile

Check whether the remote is connected

Cancel the operation

Disconnect from the remote

Free the memory associated with a remote

Update the tips to the new state

Download new data and update tips

Return whether a string is a valid remote URL

Return whether the passed URL is supported by this version of the library

Get a list of the configured remotes for a repo

Choose whether to check the server's certificate (applies to HTTPS only)

Sets a custom transport for the remote to bypass the automatic discovery of a transport by URL scheme (i.e. http://, https://, git://) and supply their own transport to be used instead. After providing the transport to a remote using this function, the transport object belongs exclusively to that remote, and the remote will free it when it is freed with git_remote_free.

Initializes a git_remote_callbacks with default values creating an instance with GIT_REMOTE_CALLBACKS_INIT.

Set the callbacks for a remote

Retrieve the current callback structure

Get the statistics structure that is filled in by the fetch operation

Retrieve the tag auto-follow setting

Set the tag auto-follow setting

Give the remote a new name

Retrieve the update FETCH_HEAD setting

Sets the update FETCH_HEAD setting updated on every fetch. Set to 0 to disable.

Ensure the remote name is well-formed

Delete an existing persisted remote

Retrieve the name of the remote's default branch