[llvm-dev] [RFC] One or many git repositories?

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Tue Jul 26 10:36:18 PDT 2016


> On Jul 26, 2016, at 10:32 AM, Renato Golin <renato.golin at linaro.org> wrote:
> 
> On 26 July 2016 at 17:59, Mehdi Amini <mehdi.amini at apple.com> wrote:
>> When exporting a commit from the monorepo to one of the read-only
>> repository, it should be possible to generate a “git-svn-id”-like the same
>> way we’re doing when exporting from SVN today.
> 
> Ha! Yes it does! Kind of reverse sub-modules. Now I get it.
> 
> However, this would require some scripting, right?

Yes, just like we do when exporting from SVN today I think. 
(The script might be slightly less complex since git is natively handling the export we’re doing today).

> 
> AFAIK, GitHub doesn't support hooks at that level, so we'd either have
> to host it somewhere else or use some more convoluted solution, no?

Since it is a deterministic process (even if the update does not happen for an hour, it can be replayed) in this direction (monorepo -> multiple subrepo contrary to multiple repo -> monorepo) it can be done asynchronously (i.e. using a cron or a web hook).

— 
Mehdi


More information about the llvm-dev mailing list