47 git_repository*
GetRepo()
const;
54 wxString GetCurrentBranchName()
const;
56 std::vector<wxString> GetBranchNames()
const;
64 std::vector<wxString> GetProjectDirs();
71 std::pair<std::set<wxString>,std::set<wxString>> GetDifferentFiles()
const;
97 GIT_CONN_TYPE GetConnType()
const;
101 void SetSSHKey(
const wxString& aSSHKey );
109 bool HasLocalCommits()
const;
112 bool HasPushAndPullRemote()
const;
115 void UpdateCurrentBranchInfo();
117 wxString GetGitRootDirectory()
const;
119 wxString GetRemotename()
const;
126 return wxEmptyString;
137 int HandleSSHKeyAuthentication( git_cred** aOut,
const wxString& aUsername );
139 int HandlePlaintextAuthentication( git_cred** aOut,
const wxString& aUsername );
141 int HandleSSHAgentAuthentication( git_cred** aOut,
const wxString& aUsername );
145 const git_error* error = git_error_last();
147 if( error ==
nullptr )
148 return wxString(
"No error" );
150 return wxString( error->message );
200extern "C" APIEXPORT int update_cb(
const char* aRefname,
const git_oid* aFirst,
const git_oid* aSecond,
203 size_t aBytes,
void* aPayload );
208 const git_oid* aOID,
unsigned int aIsMerge,
void* aPayload );
210 unsigned int aAllowedTypes,
void* aPayload );
std::mutex m_gitActionMutex
void updateConnectionType()
friend class PROJECT_TREE_PANE
std::atomic< bool > m_cancel
static wxString GetLastGitError()
static const unsigned KIGIT_CREDENTIAL_SSH_AGENT
void SetUsername(const wxString &aUsername)
wxString GetPassword() const
git_repository * GetRepo() const
friend class GIT_CLONE_HANDLER
wxString GetNextPublicKey()
KIGIT_COMMON(git_repository *aRepo)
std::vector< wxString > m_publicKeys
wxString GetUsername() const
friend class GIT_PUSH_HANDLER
friend class GIT_PULL_HANDLER
friend class LIBGIT_BACKEND
void SetCancelled(bool aCancel)
void SetPassword(const wxString &aPassword)
void SetRemote(const wxString &aRemote)
void SetRepo(git_repository *aRepo)
#define APIEXPORT
Macros which export functions from a DLL/DSO.
APIEXPORT int transfer_progress_cb(const git_transfer_progress *aStats, void *aPayload)
APIEXPORT int push_update_reference_cb(const char *aRefname, const char *aStatus, void *aPayload)
APIEXPORT int fetchhead_foreach_cb(const char *, const char *, const git_oid *aOID, unsigned int aIsMerge, void *aPayload)
APIEXPORT int credentials_cb(git_cred **aOut, const char *aUrl, const char *aUsername, unsigned int aAllowedTypes, void *aPayload)
APIEXPORT int push_transfer_progress_cb(unsigned int aCurrent, unsigned int aTotal, size_t aBytes, void *aPayload)
APIEXPORT int update_cb(const char *aRefname, const git_oid *aFirst, const git_oid *aSecond, void *aPayload)
APIEXPORT int progress_cb(const char *str, int len, void *data)
APIEXPORT void clone_progress_cb(const char *str, size_t len, size_t total, void *data)