<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 12:19 AM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span class="">Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> writes:<br>
> On Wed, Jul 20, 2016 at 11:51 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>
>> On Wed, Jul 20, 2016 at 6:26 PM, Justin Bogner via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br>
>>> Justin Lebar <<a href="mailto:jlebar@google.com">jlebar@google.com</a>> writes:<br>
</span><span class="">>>>> If all you want is to continue using git the way you use it now, the<br>
>>>> multiple git repos gets you that (as does a sparse checkout on the<br>
>>>> single repo). My point is that, the move to git opens up a new,<br>
>>>> much more powerful workflow with branches that encompass both llvm<br>
>>>> and clang state.  We can do this with or without submodules, but<br>
>>>> using submodules for this is far more awkward than using a single<br>
>>>> repo.<br>
>>><br>
>>> If I do `git log` in a sparse checkout that just has LLVM, will it<br>
>>> only show me LLVM commits? That is, how easy is it to filter out the<br>
>>> clang/lldb/subproject-X commits from a log? Negative globs are kind<br>
>>> of awkward.<br>
>><br>
>>  It is extremely easy (even with a full checkout): `git log llvm/`<br>
><br>
> To be clear, this is with a layout like:<br>
> <a href="https://github.com/llvm-project/llvm-project" rel="noreferrer" target="_blank">https://github.com/llvm-project/llvm-project</a><br>
<br>
</span>Right - I was assuming a layout where the subprojects are already in the<br>
places they need to be checked out to. With llvm-project's layout my<br>
question is silly.<br>
<br>
llvm-project's layout is kind of annoying, since with that I have to<br>
check out all of the repos yet I still need to add symlinks or something<br>
to actually use any of them.</blockquote><div><br></div><div>Hopefully we could teach CMake about the new "default" structure. We already have LLVM_EXTERNAL_{CLANG,LLD}_SOURCE_DIR (which is what I use with llvm-project) so in principle CMake already is close to being capable of understanding this layout if it becomes the default.</div><div><br></div><div>-- Sean Silva</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"> It also means that anyone who is only using<br>
llvm has to change their paths from /path/to/llvm to /path/to/llvm/llvm,<br>
which is a little bit ugly.<br>
</blockquote></div><br></div></div>