28#ifndef KIGIT_TRANSPORT_H
29#define KIGIT_TRANSPORT_H
56 bool aFollowRedirects =
true );
63 int Fetch( std::vector<wxString>* aBranches =
nullptr );
69 int Push(
const std::function<wxString()>& aConnected );
83 int connect( git_direction aDirection,
const git_remote_callbacks& aCallbacks );
std::unique_ptr< STATE > m_state
REMOTE_TRANSPORT(const REMOTE_TRANSPORT &)=delete
REMOTE_TRANSPORT(KIGIT_REPO_MIXIN *aHandler, git_remote *aRemote=nullptr, bool aFollowRedirects=true)
aHandler supplies the session and records progress, the credentials offered and why a call failed.
int Fetch(std::vector< wxString > *aBranches=nullptr)
Fetch as git fetch would. aBranches, when given, receives the branches the remote advertised.
int Check()
Connect, which proves the credentials and the host key without transferring anything.
REMOTE_TRANSPORT & operator=(const REMOTE_TRANSPORT &)=delete
int Clone(const wxString &aUrl, const wxString &aPath, git_repository **aRepo)
Clone aUrl into aPath. The new repository is returned in aRepo for the caller to free.
int Push(const std::function< wxString()> &aConnected)
Connect, then push the refspec aConnected answers, so the caller can check what it pushes after a con...
int connect(git_direction aDirection, const git_remote_callbacks &aCallbacks)
#define APIEXPORT
Macros which export functions from a DLL/DSO.
What libgit2 reported for a failed call, read before anything else can replace it.