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 2929namespace RM
3030{
3131
32+ enum class RefreshTypes
33+ {
34+ Repositories,
35+ Indicies,
36+ Worktrees
37+ };
38+
3239 namespace Frontend { class Branch ; }
3340
3441 class REPOMAN_API RepoMan
@@ -42,6 +49,7 @@ namespace RM
4249 ~RepoMan ();
4350
4451 public:
52+ void refresh (RefreshTypes what);
4553 void open (const QString& path);
4654
4755 void closeAll ();
You can’t perform that action at this time.
0 commit comments