This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 2424#include " libRepoMan/Backend/ServiceRunner.hpp"
2525
2626#include " libRepoMan/Services/OpenRepository.hpp"
27+ #include " libRepoMan/Services/RefreshRepository.hpp"
2728
2829#include " libRepoMan/Data/RepoMan.hpp"
2930#include " libRepoMan/Data/Repo.hpp"
3031
32+ #include " libLogger/Manager.hpp"
33+
3134#include " libBlueSky/Application.hpp"
3235
3336#include < QDebug>
@@ -192,6 +195,12 @@ namespace RM
192195 #endif
193196 }
194197
198+ void RepoMan::refresh (RefreshTypes what)
199+ {
200+ Log::Manager ().addMessage (trUtf8 (" Refreshing git repositories..." ));
201+ Backend::perform (new Services::RefreshRepository (activeRepository ()));
202+ }
203+
195204 #if 0 // ###DEAD
196205 //-- RepoManPrivate ----------------------------------------------------------------------------
197206
Original file line number Diff line number Diff line change 2828namespace RM
2929{
3030
31+ enum class RefreshTypes
32+ {
33+ Repositories,
34+ Indicies,
35+ Worktrees
36+ };
37+
3138 namespace Frontend { class Branch ; }
3239
3340 class REPOMAN_API RepoMan
@@ -41,6 +48,7 @@ namespace RM
4148 ~RepoMan ();
4249
4350 public:
51+ void refresh (RefreshTypes what);
4452 void open (const QString& path);
4553
4654 void closeAll ();
You can’t perform that action at this time.
0 commit comments