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

Justin Bogner via llvm-dev llvm-dev at lists.llvm.org
Thu Jul 21 14:56:56 PDT 2016

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 ;)

More information about the llvm-dev mailing list