This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 24
24
#include " libRepoMan/Backend/ServiceRunner.hpp"
25
25
26
26
#include " libRepoMan/Services/OpenRepository.hpp"
27
+ #include " libRepoMan/Services/RefreshRepository.hpp"
27
28
28
29
#include " libRepoMan/Data/RepoMan.hpp"
29
30
#include " libRepoMan/Data/Repo.hpp"
30
31
32
+ #include " libLogger/Manager.hpp"
33
+
31
34
#include " libBlueSky/Application.hpp"
32
35
33
36
#include < QDebug>
@@ -192,6 +195,12 @@ namespace RM
192
195
#endif
193
196
}
194
197
198
+ void RepoMan::refresh (RefreshTypes what)
199
+ {
200
+ Log::Manager ().addMessage (trUtf8 (" Refreshing git repositories..." ));
201
+ Backend::perform (new Services::RefreshRepository (activeRepository ()));
202
+ }
203
+
195
204
#if 0 // ###DEAD
196
205
//-- RepoManPrivate ----------------------------------------------------------------------------
197
206
Original file line number Diff line number Diff line change 28
28
namespace RM
29
29
{
30
30
31
+ enum class RefreshTypes
32
+ {
33
+ Repositories,
34
+ Indicies,
35
+ Worktrees
36
+ };
37
+
31
38
namespace Frontend { class Branch ; }
32
39
33
40
class REPOMAN_API RepoMan
@@ -41,6 +48,7 @@ namespace RM
41
48
~RepoMan ();
42
49
43
50
public:
51
+ void refresh (RefreshTypes what);
44
52
void open (const QString& path);
45
53
46
54
void closeAll ();
You can’t perform that action at this time.
0 commit comments