From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yngve Nysaeter Pettersen" Subject: Re: Opera release Git-splitter, a sub-modularizing tool for Git Date: Fri, 21 Dec 2012 16:02:20 +0100 Organization: Opera Software ASA Message-ID: References: <50D454D2.5030403@drmicha.warpmail.net> <50D468E6.2090900@drmicha.warpmail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: "Michael J Gruber" X-From: git-owner@vger.kernel.org Fri Dec 21 16:03:06 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tm47s-0008EE-Mq for gcvg-git-2@plane.gmane.org; Fri, 21 Dec 2012 16:03:05 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752158Ab2LUPCa (ORCPT ); Fri, 21 Dec 2012 10:02:30 -0500 Received: from smtp.opera.com ([213.236.208.81]:49544 "EHLO smtp.opera.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751352Ab2LUPC3 (ORCPT ); Fri, 21 Dec 2012 10:02:29 -0500 Received: from damia.oslo.osa (oslo.jvpn.opera.com [213.236.208.46]) (authenticated bits=0) by smtp.opera.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id qBLF2ONi008645 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Dec 2012 15:02:25 GMT In-Reply-To: <50D468E6.2090900@drmicha.warpmail.net> User-Agent: Opera Mail/11.64 (Win32) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Fri, 21 Dec 2012 14:49:26 +0100, Michael J Gruber wrote: > Yngve Nysaeter Pettersen venit, vidit, dixit 21.12.2012 13:43: >> Hi, >> >> On Fri, 21 Dec 2012 13:23:46 +0100, Michael J Gruber >> wrote: >> >>> Yngve N. Pettersen (Developer Opera Software ASA) venit, vidit, dixit >>> 18.12.2012 15:51: >>>> Hello all, >>>> >>>> Today Opera Software released the "Git-splitter", a small tool for >>>> sub-modularizing code in a git repo, with complete commit history, >>>> under >>>> the Apache 2.0 license. >>>> >>>> It's functionality is similar to "git-subtree", but also include a >>>> command >>>> for reversing the process. >>> >>> Is there something keeping you technically from adding a join command >>> to >>> git-subtree? >> >> Probably not, but within the process I was working I did not want to >> merge >> the branch with the recreated history for that path into the existing >> codebase (I don't like duplicate histories) so I used rebasing to move >> the >> new commits over, instead, and therefore did not need a join command. >> >> Feel free to add a join command, if you want one. > > Im sorry, but that was a total misunderstanding. You said git-splitter > is like git-subtree but adds a command for reversing the process. My > question was: What kept you from adding that to git-subtree (rather than > redoing stiff that git-subtree does)? > > I just assumed that reversing the process of splitting must be joining. > > It may very well be that git-splitter does things differently, i.e. that > there are more differences than just added functionality (compared to > git-subtree), but that is not clear from the announcement. The split command will create a new repository for all files foo in a folder (path/foo) and their commit history. The replant command reverses that process, re-adding the path prefix for each file. It may be possible to extend that process into one that automatically reintegrates the new commits in the original history, but I never had time to complete that work. I did originally add the "replant" functionality into my version of the git-subtree script, but given the number of commits in the original repository, git-subtree turned out to be inefficient, due to the use of temporary files (tens of thousands of files IIRC). Those problems led to my development of git-splitter in Python (bypassing the problem of temporary files), but just including the functionality I needed, join was not one of those functions. >>>> The code is hosted on GitHub: >>>> >>>> >>>> We have announced the release as part of another announcement of >>>> released >>>> code at the Opera Security Group home page: >>>> >>>> >> >> -- Sincerely, Yngve N. Pettersen ******************************************************************** Senior Developer Email: yngve@opera.com Opera Software ASA http://www.opera.com/ Phone: +47 96 90 41 51 Fax: +47 23 69 24 01 ********************************************************************