Skip to contentSkip to conversation

Opera release Git-splitter, a sub-modularizing tool for Git

DISCUSSION Yngve N. Pettersen (Developer Opera Software ASA) 3 participants 8 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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.

The code is hosted on GitHub: <https://github.com/operasoftware/git-splitter>

We have announced the release as part of another announcement of released code at the Opera Security Group home page: <http://my.opera.com/securitygroup/blog/2012/12/18/tls-prober-source-released-under-apache-2-0-license>

Signature · 7 lines
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: [email protected]
Opera Software ASA                   http://www.opera.com/
Phone:  +47 96 90 41 51              Fax:    +47 23 69 24 01
********************************************************************
#1 lore raw

Yngve N. Pettersen (Developer Opera Software ASA) venit, vidit, dixit 18.12.2012 15:51:

Quoted 8 lines

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?

Quoted 7 lines

The code is hosted on GitHub:
<https://github.com/operasoftware/git-splitter>

We have announced the release as part of another announcement of released code at the Opera Security Group home page:
<http://my.opera.com/securitygroup/blog/2012/12/18/tls-prober-source-released-under-apache-2-0-license>

#2 lore raw

Hi,

Quoted 8 lines · Michael J Gruber

Yngve N. Pettersen (Developer Opera Software ASA) venit, vidit, dixit 18.12.2012 15:51:

Quoted 6 lines

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.

Quoted 5 lines
Quoted 2 lines

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.

Quoted 7 lines
Quoted 7 lines

The code is hosted on GitHub:
<https://github.com/operasoftware/git-splitter>

We have announced the release as part of another announcement of released code at the Opera Security Group home page:
<http://my.opera.com/securitygroup/blog/2012/12/18/tls-prober-source-released-under-apache-2-0-license>

Signature · 7 lines
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: [email protected]
Opera Software ASA                   http://www.opera.com/
Phone:  +47 96 90 41 51              Fax:    +47 23 69 24 01
********************************************************************
#3 lore raw

Yngve Nysaeter Pettersen venit, vidit, dixit 21.12.2012 13:43:

Quoted 20 lines

Hi,

Quoted 8 lines · Michael J Gruber

Yngve N. Pettersen (Developer Opera Software ASA) venit, vidit, dixit 18.12.2012 15:51:

Quoted 6 lines

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.

Quoted 6 lines
Quoted 3 lines

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?

Quoted 6 lines

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.

Quoted 10 lines
Quoted 8 lines
Quoted 8 lines

The code is hosted on GitHub:
<https://github.com/operasoftware/git-splitter>

We have announced the release as part of another announcement of released
code at the Opera Security Group home page:
<http://my.opera.com/securitygroup/blog/2012/12/18/tls-prober-source-released-under-apache-2-0-license>

#4 lore raw
Quoted 33 lines · Michael J Gruber

Yngve Nysaeter Pettersen venit, vidit, dixit 21.12.2012 13:43:

Quoted 20 lines

Hi,

Quoted 8 lines · Michael J Gruber

Yngve N. Pettersen (Developer Opera Software ASA) venit, vidit, dixit 18.12.2012 15:51:

Quoted 6 lines

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.

Quoted 6 lines
Quoted 3 lines

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?

Quoted 6 lines

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)?

Quoted 5 lines

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.

Quoted 10 lines
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines

The code is hosted on GitHub:
<https://github.com/operasoftware/git-splitter>

We have announced the release as part of another announcement of released
code at the Opera Security Group home page:
<http://my.opera.com/securitygroup/blog/2012/12/18/tls-prober-source-released-under-apache-2-0-license>

Signature · 7 lines
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: [email protected]
Opera Software ASA                   http://www.opera.com/
Phone:  +47 96 90 41 51              Fax:    +47 23 69 24 01
********************************************************************
#5 lore raw
Quoted 8 lines · Yngve Nysaeter Pettersen

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.

Quoted 8 lines

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.

That still doesn't answer the question: why did you need to write a new tool instead of extending git-subtree?

If one doesn't use "replant", is your tool different from git-subtree?

Signature · 2 lines
Matthieu Moy
http://www-verimag.imag.fr/~moy/
#6 lore raw
Quoted 15 lines · Matthieu Moy
Quoted 13 lines · Yngve Nysaeter Pettersen

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).

Quoted 6 lines
Quoted 3 lines

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.

That still doesn't answer the question: why did you need to write a new tool instead of extending git-subtree?

The primary problem with git-subtree was that I ended up with a temporary file directory containing 100+K files, which I tracked back to being used to manage the commit-to-tree mapping. On Windows, at least, that literally slowed down the process to a crawl.

Quoted 1 line

If one doesn't use "replant", is your tool different from git-subtree?

No, it is not different. However, my tool will use RAM, not diskspace to manage information.

Signature · 7 lines
Sincerely,
Yngve N. Pettersen
********************************************************************
Senior Developer		     Email: [email protected]
Opera Software ASA                   http://www.opera.com/
Phone:  +47 96 90 41 51              Fax:    +47 23 69 24 01
********************************************************************
#7 lore raw

Yngve Nysaeter Pettersen venit, vidit, dixit 21.12.2012 21:13:

Quoted 30 lines
Quoted 15 lines · Matthieu Moy
Quoted 13 lines · Yngve Nysaeter Pettersen

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).

Quoted 6 lines
Quoted 3 lines

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.

That still doesn't answer the question: why did you need to write a new tool instead of extending git-subtree?

The primary problem with git-subtree was that I ended up with a temporary file directory containing 100+K files, which I tracked back to being used to manage the commit-to-tree mapping. On Windows, at least, that literally slowed down the process to a crawl.

Quoted 4 lines
Quoted 1 line

If one doesn't use "replant", is your tool different from git-subtree?

No, it is not different. However, my tool will use RAM, not diskspace to manage information.

That is some valuable input. It can help improve git-subtree for Windows users, or replace it by something else.

Michael