libgit2_d.remote

Undocumented in source.

Members

Aliases

git_push_negotiation
alias git_push_negotiation = int function(const(.git_push_update)** updates, size_t len, void* payload)

Callback used to inform of upcoming updates.

git_push_transfer_progress_cb
alias git_push_transfer_progress_cb = int function(uint current, uint total, size_t bytes, void* payload)

Push network progress notification function

git_push_update_reference_cb
alias git_push_update_reference_cb = int function(const(char)* refname, const(char)* status, void* data)

Callback used to inform of the update status from the remote.

git_url_resolve_cb
alias git_url_resolve_cb = int function(libgit2_d.buffer.git_buf* url_resolved, const(char)* url, int direction, void* payload)

Callback to resolve URLs before connecting to remote

Enums

GIT_FETCH_PRUNE_UNSPECIFIED
anonymousenum GIT_FETCH_PRUNE_UNSPECIFIED
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_COMPLETION_DOWNLOAD
anonymousenum GIT_REMOTE_COMPLETION_DOWNLOAD
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_CREATE_SKIP_INSTEADOF
anonymousenum GIT_REMOTE_CREATE_SKIP_INSTEADOF
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED
anonymousenum GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_fetch_prune_t
enum git_fetch_prune_t

Acceptable prune settings when fetching

git_remote_autotag_option_t
enum git_remote_autotag_option_t

Automatic tag following option

git_remote_completion_t
enum git_remote_completion_t

Argument to the completion callback which tells it which operation finished.

git_remote_create_flags
enum git_remote_create_flags

Remote creation options flags

Functions

GIT_FETCH_OPTIONS_INIT
GIT_FETCH_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_PUSH_OPTIONS_INIT
GIT_PUSH_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_CALLBACKS_INIT
GIT_REMOTE_CALLBACKS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_CREATE_OPTIONS_INIT
GIT_REMOTE_CREATE_OPTIONS_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_fetch_options_init
int git_fetch_options_init(.git_fetch_options* opts, uint version_)

Initialize git_fetch_options structure

git_push_options_init
int git_push_options_init(.git_push_options* opts, uint version_)

Initialize git_push_options structure

git_remote_add_fetch
int git_remote_add_fetch(libgit2_d.types.git_repository* repo, const(char)* remote, const(char)* refspec)

Add a fetch refspec to the remote's configuration

git_remote_add_push
int git_remote_add_push(libgit2_d.types.git_repository* repo, const(char)* remote, const(char)* refspec)

Add a push refspec to the remote's configuration

git_remote_autotag
.git_remote_autotag_option_t git_remote_autotag(const(libgit2_d.types.git_remote)* remote)

Retrieve the tag auto-follow setting

git_remote_connect
int git_remote_connect(libgit2_d.types.git_remote* remote, libgit2_d.net.git_direction direction, const(.git_remote_callbacks)* callbacks, const(libgit2_d.proxy.git_proxy_options)* proxy_opts, const(libgit2_d.strarray.git_strarray)* custom_headers)

Open a connection to a remote

git_remote_connected
int git_remote_connected(const(libgit2_d.types.git_remote)* remote)

Check whether the remote is connected

git_remote_create
int git_remote_create(libgit2_d.types.git_remote** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(char)* url)

Add a remote with the default fetch refspec to the repository's configuration.

git_remote_create_anonymous
int git_remote_create_anonymous(libgit2_d.types.git_remote** out_, libgit2_d.types.git_repository* repo, const(char)* url)

Create an anonymous remote

git_remote_create_detached
int git_remote_create_detached(libgit2_d.types.git_remote** out_, const(char)* url)

Create a remote without a connected local repo

git_remote_create_options_init
int git_remote_create_options_init(.git_remote_create_options* opts, uint version_)

Initialize git_remote_create_options structure

git_remote_create_with_fetchspec
int git_remote_create_with_fetchspec(libgit2_d.types.git_remote** out_, libgit2_d.types.git_repository* repo, const(char)* name, const(char)* url, const(char)* fetch)

Add a remote with the provided fetch refspec (or default if null) to the repository's configuration.

git_remote_create_with_opts
int git_remote_create_with_opts(libgit2_d.types.git_remote** out_, const(char)* url, const(.git_remote_create_options)* opts)

Create a remote, with options.

git_remote_default_branch
int git_remote_default_branch(libgit2_d.buffer.git_buf* out_, libgit2_d.types.git_remote* remote)

Retrieve the name of the remote's default branch

git_remote_delete
int git_remote_delete(libgit2_d.types.git_repository* repo, const(char)* name)

Delete an existing persisted remote.

git_remote_disconnect
int git_remote_disconnect(libgit2_d.types.git_remote* remote)

Disconnect from the remote

git_remote_download
int git_remote_download(libgit2_d.types.git_remote* remote, const(libgit2_d.strarray.git_strarray)* refspecs, const(.git_fetch_options)* opts)

Download and index the packfile

git_remote_dup
int git_remote_dup(libgit2_d.types.git_remote** dest, libgit2_d.types.git_remote* source)

Create a copy of an existing remote. All internal strings are also duplicated. Callbacks are not duplicated.

git_remote_fetch
int git_remote_fetch(libgit2_d.types.git_remote* remote, const(libgit2_d.strarray.git_strarray)* refspecs, const(.git_fetch_options)* opts, const(char)* reflog_message)

Download new data and update tips

git_remote_free
void git_remote_free(libgit2_d.types.git_remote* remote)

Free the memory associated with a remote

git_remote_get_fetch_refspecs
int git_remote_get_fetch_refspecs(libgit2_d.strarray.git_strarray* array, const(libgit2_d.types.git_remote)* remote)

Get the remote's list of fetch refspecs

git_remote_get_push_refspecs
int git_remote_get_push_refspecs(libgit2_d.strarray.git_strarray* array, const(libgit2_d.types.git_remote)* remote)

Get the remote's list of push refspecs

git_remote_get_refspec
const(libgit2_d.types.git_refspec)* git_remote_get_refspec(const(libgit2_d.types.git_remote)* remote, size_t n)

Get a refspec from the remote

git_remote_init_callbacks
int git_remote_init_callbacks(.git_remote_callbacks* opts, uint version_)

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

git_remote_is_valid_name
int git_remote_is_valid_name(const(char)* remote_name)

Ensure the remote name is well-formed.

git_remote_list
int git_remote_list(libgit2_d.strarray.git_strarray* out_, libgit2_d.types.git_repository* repo)

Get a list of the configured remotes for a repo

git_remote_lookup
int git_remote_lookup(libgit2_d.types.git_remote** out_, libgit2_d.types.git_repository* repo, const(char)* name)

Get the information for a particular remote

git_remote_ls
int git_remote_ls(const(libgit2_d.types.git_remote_head)*** out_, size_t* size, libgit2_d.types.git_remote* remote)

Get the remote repository's reference advertisement list

git_remote_name
const(char)* git_remote_name(const(libgit2_d.types.git_remote)* remote)

Get the remote's name

git_remote_owner
libgit2_d.types.git_repository* git_remote_owner(const(libgit2_d.types.git_remote)* remote)

Get the remote's repository

git_remote_prune
int git_remote_prune(libgit2_d.types.git_remote* remote, const(.git_remote_callbacks)* callbacks)

Prune tracking refs that are no longer present on remote

git_remote_prune_refs
int git_remote_prune_refs(const(libgit2_d.types.git_remote)* remote)

Retrieve the ref-prune setting

git_remote_push
int git_remote_push(libgit2_d.types.git_remote* remote, const(libgit2_d.strarray.git_strarray)* refspecs, const(.git_push_options)* opts)

Perform a push

git_remote_pushurl
const(char)* git_remote_pushurl(const(libgit2_d.types.git_remote)* remote)

Get the remote's url for pushing

git_remote_refspec_count
size_t git_remote_refspec_count(const(libgit2_d.types.git_remote)* remote)

Get the number of refspecs for a remote

git_remote_rename
int git_remote_rename(libgit2_d.strarray.git_strarray* problems, libgit2_d.types.git_repository* repo, const(char)* name, const(char)* new_name)

Give the remote a new name

git_remote_set_autotag
int git_remote_set_autotag(libgit2_d.types.git_repository* repo, const(char)* remote, .git_remote_autotag_option_t value)

Set the remote's tag following setting.

git_remote_set_pushurl
int git_remote_set_pushurl(libgit2_d.types.git_repository* repo, const(char)* remote, const(char)* url)

Set the remote's url for pushing in the configuration.

git_remote_set_url
int git_remote_set_url(libgit2_d.types.git_repository* repo, const(char)* remote, const(char)* url)

Set the remote's url in the configuration

git_remote_stats
const(libgit2_d.indexer.git_indexer_progress)* git_remote_stats(libgit2_d.types.git_remote* remote)

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

git_remote_stop
int git_remote_stop(libgit2_d.types.git_remote* remote)

Cancel the operation

git_remote_update_tips
int git_remote_update_tips(libgit2_d.types.git_remote* remote, const(.git_remote_callbacks)* callbacks, int update_fetchhead, .git_remote_autotag_option_t download_tags, const(char)* reflog_message)

Update the tips to the new state

git_remote_upload
int git_remote_upload(libgit2_d.types.git_remote* remote, const(libgit2_d.strarray.git_strarray)* refspecs, const(.git_push_options)* opts)

Create a packfile and send it to the server

git_remote_url
const(char)* git_remote_url(const(libgit2_d.types.git_remote)* remote)

Get the remote's url

Manifest constants

GIT_FETCH_OPTIONS_VERSION
enum GIT_FETCH_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_PUSH_OPTIONS_VERSION
enum GIT_PUSH_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_CALLBACKS_VERSION
enum GIT_REMOTE_CALLBACKS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_REMOTE_CREATE_OPTIONS_VERSION
enum GIT_REMOTE_CREATE_OPTIONS_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_fetch_options
struct git_fetch_options

Fetch options structure.

git_push_options
struct git_push_options

Controls the behavior of a git_push object.

git_push_update
struct git_push_update

Represents an update which will be performed on the remote during push

git_remote_callbacks
struct git_remote_callbacks

The callback settings structure

git_remote_create_options
struct git_remote_create_options

Remote creation options structure

Meta