Kuba Ober
2014-Mar-10 19:52 UTC
[LLVMdev] Shouldn't tools and projects in .gitignore go to .gitmodules?
I think it is erroneous to have the subrepository projects and tools listed in .gitignore. Instead of being ignored, methinks they should be listed as submodules in .gitmodules: [submodule "tools/clang"] path = tools/clang url = ../clang.git [submodule "projects/compiler-rt"] path = projects/compiler-rt url = ../compiler-rt.git [submodule "projects/test-suite"] path = projects/test-suite url = ../test-suite.git [submodule "tools/lldb"] path = tools/lldb url = ../lldb.git [submodule "tools/lld"] path = tools/lld url = ../lld.git I’ve attached a patch just in case this was the right way to go. Cheers, Kuba Ober -------------- next part -------------- A non-text attachment was scrubbed... Name: llvmgit.patch Type: application/octet-stream Size: 894 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140310/ef7dfc79/attachment.obj>
Ahmed Charles
2014-Mar-10 21:47 UTC
[LLVMdev] Shouldn't tools and projects in .gitignore go to .gitmodules?
----------------------------------------> From: kuba at mareimbrium.org > Date: Mon, 10 Mar 2014 15:52:51 -0400 > To: llvmdev at cs.uiuc.edu > Subject: [LLVMdev] Shouldn't tools and projects in .gitignore go to .gitmodules? > > > I think it is erroneous to have the subrepository projects and tools listed in .gitignore. > > Instead of being ignored, methinks they should be listed as submodules in .gitmodules:After working with submodules in Boost, the current situation for llvm is much better. The directory structure is purely due to build system concerns and is largely unrelated to source control concerns.
Kuba Ober
2014-Mar-11 04:15 UTC
[LLVMdev] Shouldn't tools and projects in .gitignore go to .gitmodules?
>> I think it is erroneous to have the subrepository projects and tools listed in .gitignore. >> >> Instead of being ignored, methinks they should be listed as submodules in .gitmodules: > > After working with submodules in Boost, the current situation for llvm is much better. The directory structure is purely due to build system concerns and is largely unrelated to source control concerns.I understand, but as things are, for one to actually use git with llvm subprojects checked out within the tree, one has to add those submodules manually. Having them listed as submodules does not force a pull, it only enables one to pull them when desired. This is especially handy when using frontends to git. Fixing it would give git users a helping hand with no ill effects. If someone wants not to pull the submodule within the tree, and wants to, say, use clang or lldb out-of-tree, it’s fine. Cheers, Kuba