|
KiCad PCB EDA Suite
|
#include <git_backend.h>
Public Member Functions | |
| virtual | ~GIT_BACKEND ()=default |
| virtual void | Init ()=0 |
| virtual void | Shutdown ()=0 |
| KIGIT_ORPHAN_REGISTRY & | OrphanRegistry () |
| Return the process-wide orphan thread registry owned by this backend. | |
| virtual bool | IsLibraryAvailable ()=0 |
| virtual bool | Clone (GIT_CLONE_HANDLER *aHandler)=0 |
| virtual CommitResult | Commit (GIT_COMMIT_HANDLER *aHandler, const std::vector< wxString > &aFiles, const wxString &aMessage, const wxString &aAuthorName, const wxString &aAuthorEmail)=0 |
| virtual CommitResult | Amend (GIT_COMMIT_HANDLER *aHandler, const std::vector< wxString > &aFiles, const wxString &aMessage, const wxString &aAuthorName, const wxString &aAuthorEmail)=0 |
| virtual PushResult | Push (GIT_PUSH_HANDLER *aHandler, bool aForce=false)=0 |
| virtual std::map< wxString, FileStatus > | GetFileStatus (GIT_STATUS_HANDLER *aHandler, const wxString &aPathspec, bool aChangedOnly)=0 |
| virtual wxString | GetCurrentBranchName (GIT_STATUS_HANDLER *aHandler)=0 |
| virtual void | UpdateRemoteStatus (GIT_STATUS_HANDLER *aHandler, const std::set< wxString > &aLocalChanges, const std::set< wxString > &aRemoteChanges, std::map< wxString, FileStatus > &aFileStatus)=0 |
| virtual wxString | GetWorkingDirectory (GIT_STATUS_HANDLER *aHandler)=0 |
| virtual bool | GetConfigString (GIT_CONFIG_HANDLER *aHandler, const wxString &aKey, wxString &aValue)=0 |
| virtual bool | IsRepository (GIT_INIT_HANDLER *aHandler, const wxString &aPath)=0 |
| virtual InitResult | InitializeRepository (GIT_INIT_HANDLER *aHandler, const wxString &aPath)=0 |
| virtual bool | SetupRemote (GIT_INIT_HANDLER *aHandler, const RemoteConfig &aConfig)=0 |
| virtual BranchResult | SwitchToBranch (GIT_BRANCH_HANDLER *aHandler, const wxString &aBranchName)=0 |
| virtual bool | PerformFetch (GIT_PULL_HANDLER *aHandler, bool aSkipLock)=0 |
| virtual PullResult | PerformPull (GIT_PULL_HANDLER *aHandler)=0 |
| virtual git_repository * | GetRepositoryForFile (const char *aFilename, wxString *aError, wxString *aTrustCommand)=0 |
| aError receives why git refused to open the repository, and aTrustCommand the command that trusts it when another user owns it. | |
| virtual int | CreateBranch (git_repository *aRepo, const wxString &aBranchName, const wxString &aFrom)=0 |
| virtual bool | RemoveVCS (git_repository *&aRepo, const wxString &aProjectPath, bool aRemoveGitDir, wxString *aErrors)=0 |
| virtual bool | DeleteBranch (git_repository *aRepo, const wxString &aBranchName)=0 |
| virtual bool | StashSave (git_repository *aRepo, const wxString &aMessage)=0 |
| virtual bool | StashApply (git_repository *aRepo, size_t aIndex)=0 |
| virtual bool | StashPop (git_repository *aRepo, size_t aIndex)=0 |
| virtual bool | StashDrop (git_repository *aRepo, size_t aIndex)=0 |
| virtual bool | CreateTag (git_repository *aRepo, const wxString &aName, const wxString &aMessage)=0 |
| virtual bool | DeleteTag (git_repository *aRepo, const wxString &aName)=0 |
| virtual bool | CheckoutTag (git_repository *aRepo, const wxString &aName)=0 |
| virtual bool | AddRemote (git_repository *aRepo, const wxString &aName, const wxString &aUrl)=0 |
| virtual bool | SetRemoteUrl (git_repository *aRepo, const wxString &aName, const wxString &aUrl)=0 |
| virtual bool | RemoveRemote (git_repository *aRepo, const wxString &aName)=0 |
| virtual bool | SetUserConfig (git_repository *aRepo, const wxString &aName, const wxString &aEmail)=0 |
| virtual RestoreResult | RestoreVersion (KIGIT_COMMON &aCommon, const wxString &aCommitHash, KIGIT_ERROR_MESSAGE &aError)=0 |
| virtual bool | DiscardChanges (git_repository *aRepo, const std::vector< wxString > &aPaths, wxString &aError)=0 |
| virtual bool | IsPathInHead (git_repository *aRepo, const wxString &aPath)=0 |
| virtual bool | AbandonOperation (git_repository *aRepo, wxString &aError)=0 |
| Drop a merge, rebase, cherry-pick or revert left in progress and return to the last commit. | |
| virtual bool | GetMergeConflicts (git_repository *aRepo, const wxString &aStageDir, wxString &aHeadOid, wxString &aTheirsOid, std::vector< KIGIT_CONFLICT_SIDES > &aConflicts, wxString &aError)=0 |
| virtual MergeCommitResult | CreateMergedCommit (git_repository *aRepo, const wxString &aExpectedHeadOid, const wxString &aTheirsOid, const std::vector< std::pair< wxString, wxString > > &aResolvedFiles, KIGIT_ERROR_MESSAGE &aError)=0 |
Protected Attributes | |
| KIGIT_ORPHAN_REGISTRY | m_orphanRegistry |
Definition at line 74 of file git_backend.h.
|
virtualdefault |
|
pure virtual |
Drop a merge, rebase, cherry-pick or revert left in progress and return to the last commit.
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::AbandonOperation().
|
pure virtual |
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_COMMIT_HANDLER::PerformAmend().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::CheckoutTag().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_CLONE_HANDLER::PerformClone().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_COMMIT_HANDLER::PerformCommit().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT::PROJECT_GIT_UTILS::CreateBranch(), and KIGIT_COMMON::CreateBranch().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::CreateMergedCommit().
|
pure virtual |
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::DeleteBranch().
|
pure virtual |
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::DiscardChanges().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_CONFIG_HANDLER::GetConfigString(), and KIGIT::ReadGitIdentity().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_STATUS_HANDLER::GetCurrentBranchName().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_STATUS_HANDLER::GetFileStatus().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::GetMergeConflicts().
|
pure virtual |
aError receives why git refused to open the repository, and aTrustCommand the command that trusts it when another user owns it.
Both are untouched otherwise.
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT::PROJECT_GIT_UTILS::GetRepositoryForFile().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_STATUS_HANDLER::GetWorkingDirectory().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by PGM_KICAD::OnPgmInit(), and PGM_SINGLE_TOP::OnPgmInit().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_INIT_HANDLER::InitializeRepository().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by PROJECT_TREE_PANE::showContextMenu().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::IsPathInHead().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_INIT_HANDLER::IsRepository().
|
inline |
Return the process-wide orphan thread registry owned by this backend.
Callers that abandon a long-running git operation must route their cleanup thread through this registry so the shutdown path can wait for libgit2 workers to finish before calling git_libgit2_shutdown().
Definition at line 92 of file git_backend.h.
References m_orphanRegistry.
Referenced by KIGIT::PROJECT_GIT_UTILS::SafeFreeRepository(), and KIGIT::StartTransfer().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_PULL_HANDLER::PerformFetch().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_PULL_HANDLER::PerformPull().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_PUSH_HANDLER::PerformPush().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::RemoveRemote().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT::PROJECT_GIT_UTILS::RemoveVCS().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by KIGIT_COMMON::RestoreVersion().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::SetRemoteUrl().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_INIT_HANDLER::SetupRemote().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
References git_repository.
Referenced by KIGIT_COMMON::SetUserConfig().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by PGM_KICAD::OnPgmExit().
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_BRANCH_HANDLER::SwitchToBranch().
|
pure virtual |
Implemented in LIBGIT_BACKEND.
Referenced by GIT_STATUS_HANDLER::UpdateRemoteStatus().
|
protected |
Definition at line 180 of file git_backend.h.
Referenced by OrphanRegistry(), and LIBGIT_BACKEND::Shutdown().