user12779475
user12779475

Reputation:

How to combine two git hosted projects into one fork in a way, that both can be updated easily?

There are two projects: micropython and lvgl (a gui), both maintained by different persons, both are git repos. Both can be combined technically into one to build a "python programmable gui for microcontrollers". Most of the code don't overlap, only a few changes need to be madenter code heree to make micropython "lvgl-aware". There is a repo of a combination of both already, but that one is outdated slightly and something is wrong with the git-related metadata. So I want to try my own attempt to combine both.

Is it possible to combine both into one repo in a way, that is easy to update lvgl as it is easy to update micropython ?

Upvotes: 0

Views: 45

Answers (1)

Mansoor
Mansoor

Reputation: 2438

Maybe a better structure would be to write something that sits on top of both of these projects (uses micropython and lvgl as dependencies), rather than modifying the base projects for your specific application. If you then need to make changes to either one of the projects to make them more generic/extensible, those changes should be merged into the base projects. This approach has other benefits. It allows you to abstract away any implementation details in the dependency, and provide the interface you want.

Upvotes: 1

Related Questions