Multiple streams over single project in Git?

蹲街弑〆低调 提交于 2019-12-08 14:59:27
VonC

"stream-like concept"? I saw those in ClearCase or RTC (Rational Team Concert).

No there is no stream, where you could define the list of "components" you want to work with.

But there are branches: in each branches you can add or remove the submodules you need to see or to ignore. See "How do I remove a Git submodule?"

So you could achieve a similar configuration as in streams, with branches including only the submodules you need.

Regarding the ACL (Access Control List), the most complete solution is gitolite, a perl script called by your Git server (apache or ssh, which are doing the authentication), and which will do the authorisation.

My suggestion would be to keep each "subproject" in its own Git repository. They have nothing to do with each other, have separate authentication requirements, etc. In addition, keeping separate codebases in a single repository can result in a lot of spurious merge commits, where one side of the merge is a change to project A and the other side is a change to project B, creating a lot of noise.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!