On Wed, Dec 7, 2011 at 18:09, Justin Martin <frozenf...@php.net> wrote: > On 11-12-07 02:58 AM, Hannes Magnusson wrote: >> >> On Wed, Dec 7, 2011 at 01:57, Justin Martin<frozenf...@php.net> wrote: >>> >>> Hello everyone, >>> >>> There's been some informal discussion in #php.doc on EFnet about how the >>> transition from Subversion to Git will be achieved, and what the >>> resulting >>> structure will look like. >> >> >> We can't use submodules. >> Submodules in git reference a specific commit, not "last commit" like >> it does in svn by default. >> >> If we use git submodules in means; >> Every time we update doc-base, you have to update the submodule in >> _all_ translations to the last commit and commit the change. >> >> -Hannes > > > Hi Hannes, > > I was actually thinking of that issue, and thought that it would be a simple > matter to use a client-side post-checkout hook to run "git submodules > foreach git pull". That'd update each submodule. > > Not sure of the specifics in that regard, but I can't think of any other > solution to that problem than submodules.
Debugging client side post hooks is not something I want to even think about when debugging why some translation doesn't work. And, using this model, you would need to have 100 checkouts of doc-base if you have 100 translations locally. I would rather recommend that you simply have to do an explicit doc-base checkout and update, not bundling. Also, what worries me more is the way we determine if a file is up2date or not. git doesn't have these sort of keywords and the idea of bumping the files revision manually has been rejected several times (although not in this context, the idea was to eliminate the translators need to bump their version on english typo and ws fixes). -Hannes