On Windows we have root\folder1
, root\folder2
, root\folder3
.
On Linux we have root/folder1/folder2
, root/folder1/folder3
I would strongly prefer NOT to use submodules nor subtreees.
Is there another solution? Would it work to create a branch and re-arrange the files to the Linux structure? And would merges between the branches make sense?
Edit
I have done much more reading, especially about branch work flows. I'm now re-considering the NOT submodules statement. I was concerned with having the day-to-day developer repository containing submodules and the complications that seems to entail. But, I think that the developers do not need submodules, they can meet the need with embedded repositories.
Say folder 1
, folder 2
and folder3
are separate git repositories - repo 1
, repo 2
and repo 3
. On Windows the 3 repositories are separate. On Linux, folder 1
is repo 1
, folder1/folder 2
is repo 2
, etc.
If I'm in folder 1
and there are changes in folder 2
, will a git add .
not include the folder
2 change? Does git stop when it sees another .git
?
There could be 2 separate bare repositories for building which includes the 3 repos as submodules in the appropriate configuration for Windows and Linux. The release branches can then be managed here. But what branching is seen in repo 1, 2 and 3
? Has anyone tried something like this? Did it work well?