Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 04a20d9

Browse files
committed
Move some RepoMan code around
1 parent dcb842b commit 04a20d9

28 files changed

+105
-85
lines changed

Libs/libMacGitverCore/CMakeLists.txt

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,21 @@ SET( SRC_FILES
3737
MacGitver/GitPatchConsumer.cpp
3838

3939
RepoMan/AutoRefresher.cpp
40-
RepoMan/Base.cpp
41-
RepoMan/Ref.cpp
42-
RepoMan/Branch.cpp
43-
RepoMan/CollectionNode.cpp
4440
RepoMan/Events.cpp
45-
RepoMan/Repo.cpp
46-
RepoMan/RepoMan.cpp
47-
RepoMan/Remote.cpp
48-
RepoMan/Tag.cpp
49-
RepoMan/RefLog.cpp
50-
RepoMan/Submodule.cpp
51-
RepoMan/RefTreeNode.cpp
52-
RepoMan/Namespace.cpp
53-
RepoMan/Head.cpp
41+
42+
RepoMan/Frontend/Base.cpp
43+
RepoMan/Frontend/Branch.cpp
44+
RepoMan/Frontend/CollectionNode.cpp
45+
RepoMan/Frontend/Namespace.cpp
46+
RepoMan/Frontend/Ref.cpp
47+
RepoMan/Frontend/RefLog.cpp
48+
RepoMan/Frontend/RefTreeNode.cpp
49+
RepoMan/Frontend/Remote.cpp
50+
RepoMan/Frontend/Repo.cpp
51+
RepoMan/Frontend/RepoMan.cpp
52+
RepoMan/Frontend/Submodule.cpp
53+
RepoMan/Frontend/Tag.cpp
54+
RepoMan/Frontend/Head.cpp
5455

5556
RepoMan/Private/Dumper.cpp
5657

@@ -132,20 +133,22 @@ SET( PRI_HDR_FILES
132133

133134
RepoMan/AutoRefresher.hpp
134135

135-
RepoMan/Private/BasePrivate.hpp
136-
RepoMan/Private/BranchPrivate.hpp
137-
RepoMan/Private/CollectionNodePrivate.hpp
138-
RepoMan/Private/NamespacePrivate.hpp
139-
RepoMan/Private/RefPrivate.hpp
140-
RepoMan/Private/RefLogPrivate.hpp
141-
RepoMan/Private/RefTreeNodePrivate.hpp
142-
RepoMan/Private/RemotePrivate.hpp
143-
RepoMan/Private/RepoPrivate.hpp
144-
RepoMan/Private/RepoManPrivate.hpp
145-
RepoMan/Private/SubmodulePrivate.hpp
146-
RepoMan/Private/TagPrivate.hpp
147136
RepoMan/Private/Dumper.hpp
148-
RepoMan/Private/HeadPrivate.hpp
137+
138+
RepoMan/Data/BaseData.hpp
139+
RepoMan/Data/BranchData.hpp
140+
RepoMan/Data/CollectionNodeData.hpp
141+
RepoMan/Data/NamespaceData.hpp
142+
RepoMan/Data/RefData.hpp
143+
RepoMan/Data/RefLogData.hpp
144+
RepoMan/Data/RefTreeNodeData.hpp
145+
RepoMan/Data/RemoteData.hpp
146+
RepoMan/Data/RepoData.hpp
147+
RepoMan/Data/RepoManData.hpp
148+
RepoMan/Data/SubmoduleData.hpp
149+
RepoMan/Data/TagData.hpp
150+
RepoMan/Data/HeadData.hpp
151+
149152

150153
RepoMan/Config/RepoManConfigPage.hpp
151154

Libs/libMacGitverCore/RepoMan/Config/RepoManConfigPage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
#include "libMacGitverCore/RepoMan/Config/RepoManConfigPage.hpp"
21-
#include "libMacGitverCore/RepoMan/Private/RepoManPrivate.hpp"
21+
#include "libMacGitverCore/RepoMan/Data/RepoManData.hpp"
2222
#include "libMacGitverCore/RepoMan/AutoRefresher.hpp"
2323
#include "libMacGitverCore/RepoMan/RepoMan.hpp"
2424

Libs/libMacGitverCore/RepoMan/Private/BranchPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/BranchData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_BRANCH_PRIVATE_HPP
2121
#define REPOMAN_BRANCH_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/RefPrivate.hpp"
23+
#include "RepoMan/Data/RefData.hpp"
2424

2525
#include "RepoMan/Branch.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/CollectionNodePrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/CollectionNodeData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_COLLECTION_NODE_PRIVATE_HPP
2121
#define REPOMAN_COLLECTION_NODE_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/BasePrivate.hpp"
23+
#include "RepoMan/Data/BaseData.hpp"
2424

2525
#include "RepoMan/CollectionNode.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/HeadPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/HeadData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#pragma once
2121

22-
#include "RepoMan/Private/BasePrivate.hpp"
22+
#include "RepoMan/Data/BaseData.hpp"
2323

2424
#include "RepoMan/Head.hpp"
2525

Libs/libMacGitverCore/RepoMan/Private/NamespacePrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/NamespaceData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_NAMESPACE_PRIVATE_HPP
2121
#define REPOMAN_NAMESPACE_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/BasePrivate.hpp"
23+
#include "RepoMan/Data/BaseData.hpp"
2424

2525
#include "RepoMan/Namespace.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/RefPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RefData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919

20-
#include "RepoMan/Private/BasePrivate.hpp"
20+
#include "RepoMan/Data/BaseData.hpp"
2121

2222
#include "RepoMan/Ref.hpp"
2323

Libs/libMacGitverCore/RepoMan/Private/RefLogPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RefLogData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_REF_LOG_PRIVATE_HPP
2121
#define REPOMAN_REF_LOG_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/BasePrivate.hpp"
23+
#include "RepoMan/Data/BaseData.hpp"
2424

2525
#include "RepoMan/RefLog.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/RefTreeNodePrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RefTreeNodeData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_REF_TREE_NODE_PRIVATE_HPP
2121
#define REPOMAN_REF_TREE_NODE_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/BasePrivate.hpp"
23+
#include "RepoMan/Data/BaseData.hpp"
2424

2525
#include "RepoMan/RefTreeNode.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/RemotePrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RemoteData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_REMOTE_PRIVATE_HPP
2121
#define REPOMAN_REMOTE_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/BasePrivate.hpp"
23+
#include "RepoMan/Data/BaseData.hpp"
2424

2525
#include "RepoMan/Remote.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/RepoPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RepoData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919

20-
#include "RepoMan/Private/BasePrivate.hpp"
20+
#include "RepoMan/Data/BaseData.hpp"
2121

2222
#include "RepoMan/Repo.hpp"
2323

Libs/libMacGitverCore/RepoMan/Private/RepoManPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/RepoManData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_REPO_MAN_PRIVATE_HPP
2121
#define REPOMAN_REPO_MAN_PRIVATE_HPP
2222

23-
#include "libMacGitverCore/RepoMan/Private/BasePrivate.hpp"
23+
#include "libMacGitverCore/RepoMan/Data/BaseData.hpp"
2424

2525
#include "libMacGitverCore/RepoMan/RepoMan.hpp"
2626
#include "libMacGitverCore/RepoMan/AutoRefresher.hpp"

Libs/libMacGitverCore/RepoMan/Private/SubmodulePrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/SubmoduleData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_SUBMODULE_PRIVATE_HPP
2121
#define REPOMAN_SUBMODULE_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/RepoPrivate.hpp"
23+
#include "RepoMan/Data/RepoData.hpp"
2424

2525
#include "RepoMan/Submodule.hpp"
2626

Libs/libMacGitverCore/RepoMan/Private/TagPrivate.hpp renamed to Libs/libMacGitverCore/RepoMan/Data/TagData.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#ifndef REPOMAN_TAG_PRIVATE_HPP
2121
#define REPOMAN_TAG_PRIVATE_HPP
2222

23-
#include "RepoMan/Private/RefPrivate.hpp"
23+
#include "RepoMan/Data/RefData.hpp"
2424

2525
#include "RepoMan/Tag.hpp"
2626

Libs/libMacGitverCore/RepoMan/Base.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Base.cpp

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@
2424

2525
#include "App/MacGitver.hpp"
2626

27-
#include "Base.hpp"
28-
#include "Repo.hpp"
29-
#include "RepoMan.hpp"
30-
#include "RefTreeNode.hpp"
31-
#include "CollectionNode.hpp"
32-
#include "Events.hpp"
33-
34-
#include "Private/RepoManPrivate.hpp"
35-
#include "Private/Dumper.hpp"
36-
#include "Private/BasePrivate.hpp"
27+
#include "RepoMan/Base.hpp"
28+
#include "RepoMan/Repo.hpp"
29+
#include "RepoMan/RepoMan.hpp"
30+
#include "RepoMan/RefTreeNode.hpp"
31+
#include "RepoMan/CollectionNode.hpp"
32+
#include "RepoMan/Events.hpp"
33+
34+
#include "RepoMan/Data/RepoManData.hpp"
35+
#include "RepoMan/Data/BaseData.hpp"
36+
37+
#include "RepoMan/Private/Dumper.hpp"
3738

3839
namespace RM
3940
{

Libs/libMacGitverCore/RepoMan/Branch.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Branch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
#include "RepoMan/Head.hpp"
2424

2525
#include "RepoMan/Private/Dumper.hpp"
26-
#include "RepoMan/Private/BranchPrivate.hpp"
26+
27+
#include "RepoMan/Data/BranchData.hpp"
2728

2829
namespace RM
2930
{

Libs/libMacGitverCore/RepoMan/CollectionNode.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/CollectionNode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121

2222
#include "libHeavenIcons/IconRef.hpp"
2323

24-
#include "CollectionNode.hpp"
24+
#include "RepoMan/CollectionNode.hpp"
2525

26-
#include "Private/Dumper.hpp"
27-
#include "Private/CollectionNodePrivate.hpp"
26+
#include "RepoMan/Private/Dumper.hpp"
27+
#include "RepoMan/Data/CollectionNodeData.hpp"
2828

2929
namespace RM
3030
{

Libs/libMacGitverCore/RepoMan/Head.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Head.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
*
1818
*/
1919

20-
#include "Head.hpp"
21-
#include "Events.hpp"
20+
#include "RepoMan/Events.hpp"
21+
22+
#include "RepoMan/Head.hpp"
2223

2324
#include "RepoMan/Private/Dumper.hpp"
24-
#include "RepoMan/Private/HeadPrivate.hpp"
25+
26+
#include "RepoMan/Data/HeadData.hpp"
27+
2528
#include "RepoMan/Branch.hpp"
2629
#include "RepoMan/Repo.hpp"
2730

Libs/libMacGitverCore/RepoMan/Namespace.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Namespace.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
*
1818
*/
1919

20-
#include "Namespace.hpp"
21-
#include "Events.hpp"
20+
#include "RepoMan/Events.hpp"
21+
22+
#include "RepoMan/Namespace.hpp"
2223

2324
#include "RepoMan/Private/Dumper.hpp"
24-
#include "RepoMan/Private/NamespacePrivate.hpp"
25+
#include "RepoMan/Data/NamespaceData.hpp"
2526

2627
namespace RM
2728
{

Libs/libMacGitverCore/RepoMan/Ref.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Ref.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@
2121
#include "libGitWrap/Reference.hpp"
2222
#include "libGitWrap/RefName.hpp"
2323

24-
#include "Ref.hpp"
25-
#include "Repo.hpp"
26-
#include "Events.hpp"
24+
#include "RepoMan/Events.hpp"
2725

28-
#include "Private/Dumper.hpp"
29-
#include "Private/RefPrivate.hpp"
26+
#include "RepoMan/Ref.hpp"
27+
#include "RepoMan/Repo.hpp"
28+
29+
#include "RepoMan/Private/Dumper.hpp"
30+
#include "RepoMan/Data/RefData.hpp"
3031

3132
namespace RM
3233
{

Libs/libMacGitverCore/RepoMan/RefLog.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/RefLog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
*
1818
*/
1919

20-
#include "RefLog.hpp"
20+
#include "RepoMan/RefLog.hpp"
2121

2222
#include "RepoMan/Private/Dumper.hpp"
23-
#include "RepoMan/Private/RefLogPrivate.hpp"
23+
#include "RepoMan/Data/RefLogData.hpp"
2424

2525
namespace RM
2626
{

Libs/libMacGitverCore/RepoMan/RefTreeNode.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/RefTreeNode.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
*
1818
*/
1919

20-
#include "RefTreeNode.hpp"
21-
#include "Events.hpp"
20+
#include "RepoMan/Events.hpp"
21+
22+
#include "RepoMan/RefTreeNode.hpp"
23+
2224
#include "RepoMan/Private/Dumper.hpp"
23-
#include "RepoMan/Private/RefTreeNodePrivate.hpp"
25+
26+
#include "RepoMan/Data/RefTreeNodeData.hpp"
2427

2528
namespace RM
2629
{

Libs/libMacGitverCore/RepoMan/Remote.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Remote.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919

2020
#include "libGitWrap/Result.hpp"
2121

22-
#include "Repo.hpp"
23-
#include "Remote.hpp"
24-
#include "Events.hpp"
25-
#include "CollectionNode.hpp"
22+
#include "RepoMan/Events.hpp"
23+
24+
#include "RepoMan/Repo.hpp"
25+
#include "RepoMan/Remote.hpp"
26+
#include "RepoMan/CollectionNode.hpp"
2627

2728
#include "RepoMan/Private/Dumper.hpp"
28-
#include "RepoMan/Private/RemotePrivate.hpp"
29+
30+
#include "RepoMan/Data/RemoteData.hpp"
2931

3032
namespace RM
3133
{

Libs/libMacGitverCore/RepoMan/Repo.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Repo.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
#include "RepoMan/Submodule.hpp"
4040

4141
#include "RepoMan/Private/Dumper.hpp"
42-
#include "RepoMan/Private/RepoPrivate.hpp"
43-
#include "RepoMan/Private/RemotePrivate.hpp"
44-
#include "RepoMan/Private/CollectionNodePrivate.hpp"
42+
43+
#include "RepoMan/Data/RepoData.hpp"
44+
#include "RepoMan/Data/RemoteData.hpp"
45+
#include "RepoMan/Data/CollectionNodeData.hpp"
4546

4647
namespace RM
4748
{

Libs/libMacGitverCore/RepoMan/RepoMan.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/RepoMan.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
#include "RepoMan/Events.hpp"
2323

2424
#include "RepoMan/Private/Dumper.hpp"
25-
#include "RepoMan/Private/RepoManPrivate.hpp"
26-
#include "RepoMan/Private/RepoPrivate.hpp"
25+
26+
#include "RepoMan/Data/RepoManData.hpp"
27+
#include "RepoMan/Data/RepoData.hpp"
2728

2829
#include "libBlueSky/Application.hpp"
2930

Libs/libMacGitverCore/RepoMan/Submodule.cpp renamed to Libs/libMacGitverCore/RepoMan/Frontend/Submodule.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
*
1818
*/
1919

20-
#include "Submodule.hpp"
21-
#include "Events.hpp"
20+
#include "RepoMan/Events.hpp"
21+
22+
#include "RepoMan/Submodule.hpp"
2223

2324
#include "RepoMan/Private/Dumper.hpp"
24-
#include "RepoMan/Private/SubmodulePrivate.hpp"
25+
#include "RepoMan/Data/SubmoduleData.hpp"
2526

2627
namespace RM
2728
{

0 commit comments

Comments
 (0)