On Wed, Feb 11, 2015 at 06:17:35PM +0000, Dicebot via Digitalmars-d wrote: > On Wednesday, 11 February 2015 at 18:05:56 UTC, Andrei Alexandrescu wrote: > >What does "update" mean in this context? I was expecting the projects > >to be more or less up to date. -- Andrei > > $ git clone --recursive [email protected]:D-Programming-Language/dlang > > This will clone all submodules set to latest released version tag > (v2.066.1 right now) > > $ cd dlang; ./dlang.d update > > This will update all submodules to latest git master heads. > > git submodules are designed to track exact commit hash of remote > repository - it is impossible to define those to always be cloned as > most recent version of some branch. One can keep updating submodule > references with some daemon service (Vladimir does exactly that in > https://bitbucket.org/cybershadow/d) but that will pollute history of > meta-repo with dozens of trivial commits every day making it hard to > use it for any real code (and also relying on well-being of that > daemon service).
I thought somebody mentioned that the latest version of git submodules now allows tracking branch heads instead of specific commits? T -- "I suspect the best way to deal with procrastination is to put off the procrastination itself until later. I've been meaning to try this, but haven't gotten around to it yet. " -- swr
