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:
Martín Lucas Golini
2024-02-15 19:42:24 -03:00
parent ec1a09e9a3
commit b8d79fe493
12 changed files with 179 additions and 61 deletions
+5 -1
View File
@@ -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 );