
26 Mar
2012
26 Mar
'12
10:14 a.m.
On 26 March 2012 06:48, Martin Geisler <mg@aragost.com> wrote:
You can split a Git or Mercurial repository into two new repositories and extract a sub-tree but you're rewriting history when you do it. Rewriting history implies getting new SHA-1 hash values for the changesets (since their content changes) and so you get *new* and unrelated repositories out of this.
git-subtree does annotate commits (in the commit message) so that it can track transferring changes between the two repositories. I don't know how well it works for transferring changes in both directions. But I think it only allows you to extract a single directory; spirit would need to extract two: boost/spirit and libs/spirit.