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 29
29
namespace RM
30
30
{
31
31
32
+ enum class RefreshTypes
33
+ {
34
+ Repositories,
35
+ Indicies,
36
+ Worktrees
37
+ };
38
+
32
39
namespace Frontend { class Branch ; }
33
40
34
41
class REPOMAN_API RepoMan
@@ -42,6 +49,7 @@ namespace RM
42
49
~RepoMan ();
43
50
44
51
public:
52
+ void refresh (RefreshTypes what);
45
53
void open (const QString& path);
46
54
47
55
void closeAll ();
You can’t perform that action at this time.
0 commit comments