git_remote_create_with_opts

Create a remote, with options.

This function allows more fine-grained control over the remote creation.

Passing NULL as the opts argument will result in a detached remote.

extern (C) nothrow @nogc
int
git_remote_create_with_opts

Parameters

out_ libgit2_d.types.git_remote**

the resulting remote

url const(char)*

the remote's url

opts const(.git_remote_create_options)*

the remote creation options

Return Value

Type: int

0, git_error_code.GIT_EINVALIDSPEC, git_error_code.GIT_EEXISTS or an error code

Meta