git_remote_upload

Create a packfile and send it to the server

Connect to the remote if it hasn't been done yet, negotiate with the remote git which objects are missing, create a packfile with the missing objects and send it.

extern (C) nothrow @nogc
int
git_remote_upload

Parameters

remote libgit2_d.types.git_remote*

the remote

refspecs const(libgit2_d.strarray.git_strarray)*

the refspecs to use for this negotiation and upload. Use null or an empty array to use the base refspecs

opts const(.git_push_options)*

the options to use for this push

Return Value

Type: int

0 or an error code

Meta