50 const std::set<wxString>& aRemoteChanges,
51 std::map<wxString, FileStatus>& aFileStatus )
63 if( aGitStatus & GIT_STATUS_IGNORED )
67 else if( aGitStatus & ( GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_MODIFIED ) )
71 else if( aGitStatus & ( GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_NEW ) )
75 else if( aGitStatus & ( GIT_STATUS_INDEX_DELETED | GIT_STATUS_WT_DELETED ) )
79 else if( aGitStatus & ( GIT_STATUS_CONFLICTED ) )
virtual wxString GetWorkingDirectory(GIT_STATUS_HANDLER *aHandler)=0
virtual std::map< wxString, FileStatus > GetFileStatus(GIT_STATUS_HANDLER *aHandler, const wxString &aPathspec)=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 bool HasChangedFiles(GIT_STATUS_HANDLER *aHandler)=0
void ReportProgress(int aCurrent, int aTotal, const wxString &aMessage)
void UpdateProgress(int aCurrent, int aTotal, const wxString &aMessage) override
GIT_STATUS_HANDLER(KIGIT_COMMON *aCommon)
wxString GetCurrentBranchName()
Get the current branch name.
void UpdateRemoteStatus(const std::set< wxString > &aLocalChanges, const std::set< wxString > &aRemoteChanges, std::map< wxString, FileStatus > &aFileStatus)
Get status for modified files based on local/remote changes.
KIGIT_COMMON::GIT_STATUS ConvertStatus(unsigned int aGitStatus)
Convert git status flags to KIGIT_COMMON::GIT_STATUS.
wxString GetWorkingDirectory()
Get the repository working directory path.
bool HasChangedFiles()
Check if the repository has any changed files.
std::map< wxString, FileStatus > GetFileStatus(const wxString &aPathspec=wxEmptyString)
Get detailed file status for all files in the specified path.
virtual ~GIT_STATUS_HANDLER()
KIGIT_REPO_MIXIN(KIGIT_COMMON *aCommon)
GIT_BACKEND * GetGitBackend()
wxLogTrace helper definitions.