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

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 21 15:03:21 PDT 2016


> On Jul 21, 2016, at 2:56 PM, Justin Bogner <mail at justinbogner.com> wrote:
> 
> Mehdi Amini via llvm-dev <llvm-dev at lists.llvm.org> writes:
>>>> What do people think of having one (or a set of) merge commit(s)
>>>> merging in the non-llvm projects that will be part of the new
>>>> monorepo?  That's the only technique I can think of that will preserve
>>>> history for downstream users by construction.
>>> 
>>> I have no idea what you mean here?
>> 
>> I think I understand what you mean:
>> 
>> 1) checkout the existing clang repo
>> 2) move everything in a subdirectory “clang”
>> 3) commit the move
>> 4) merge this into the new “llvm-project”.
>> 5) repeat for every single project
>> 
>> That should preserve the hashes and avoid user to have to “extract”
>> the subproject to merge into their own branch.
>> Annoyingly, it breaks git log path/to/file though.
> 
> Use `git log --follow path/to/file`. It's better ;)

I know, it works most of the time for log, but how do blame it at a revision older than the move?

— 
Mehdi




More information about the llvm-dev mailing list