mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-18 19:43:24 +03:00
Menu option for Git diff for staged files and repo.
Improved visually git file modified indicator. Minor fix in auto complete. Added Main Menu shortcut on welcome screen. Added String::numberClean.
This commit is contained in:
@@ -81,9 +81,10 @@ class GitPlugin : public PluginBase {
|
||||
std::unordered_map<std::string, std::string> mGitBranches;
|
||||
Git::Status mGitStatus;
|
||||
std::vector<std::pair<std::string, std::string>> mRepos;
|
||||
UnorderedSet<std::string> mGitStatusFilesCache;
|
||||
std::string mProjectPath;
|
||||
std::string mRepoSelected;
|
||||
std::string mHighlightStyle{ "color: var(--font-highlight);" };
|
||||
std::string mHighlightStyleColor;
|
||||
|
||||
Time mRefreshFreq{ Seconds( 5 ) };
|
||||
bool mGitFound{ false };
|
||||
@@ -118,6 +119,7 @@ class GitPlugin : public PluginBase {
|
||||
Clock mLastBranchesUpdate;
|
||||
Mutex mGitBranchMutex;
|
||||
Mutex mGitStatusMutex;
|
||||
Mutex mGitStatusFileCacheMutex;
|
||||
Mutex mRepoMutex;
|
||||
Mutex mReposMutex;
|
||||
String mLastCommitMsg;
|
||||
@@ -178,6 +180,8 @@ class GitPlugin : public PluginBase {
|
||||
|
||||
void discard( const std::string& file );
|
||||
|
||||
void diff( const Git::DiffMode mode, const std::string& repoPath );
|
||||
|
||||
void diff( const std::string& file, bool isStaged );
|
||||
|
||||
void openFile( const std::string& file );
|
||||
|
||||
Reference in New Issue
Block a user