git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git 2.9 subtree split with rejoin

From
Jakub Narębski <jnareb@gmail.com>
Date
Jul 31, 2016, 17:32 UTC
Message-ID
<ddf95185-0b87-b81b-6583-6e0aab5a6b5a@gmail.com>
In-Reply-To
<1BED74C8-2E4C-4CA7-B785-F0666B69C1A7@gmail.com>
W dniu 31.07.2016 o 16:32, Sylvain Garrigues pisze:
Show 12 quoted lines
> Hello,
> 
> It seems now with 2.9 you cannot use git subtree split —rejoin
> without —onto otherwise you get:
>    fatal: refusing to merge unrelated histories
> 
> I wish I could pass --allow-unrelated-histories but that doesn’t
> work.
> 
> Adding —onto makes the split operation much much longer. Could we
> make a bug fix which allow to pass the --allow-unrelated-histories
> flag to subtree split?

This should be soon in 'master', you can check it in 'next', and I think it would be present in the new release.

From "What's cooking in git.git (Jul 2016, #09; Fri, 29)": -------------------------------------------------------------------- [Cooking]

* da/subtree-2.9-regression (2016-07-26) 2 commits
  (merged to 'next' on 2016-07-26 at 9d71562)
 + subtree: fix "git subtree split --rejoin"
 + t7900-subtree.sh: fix quoting and broken && chains
 (this branch is used by da/subtree-modernize.)
 "git merge" in Git v2.9 was taught to forbid merging an unrelated
 lines of history by default, but that is exactly the kind of thing
 the "--rejoin" mode of "git subtree" (in contrib/) wants to do.
 "git subtree" has been taught to use the "--allow-unrelated-histories"
 option to override the default.
 Will merge to 'master'.
Previous: Sylvain Garrigues
Message 2 of 2 in “git 2.9 subtree split with rejoin”
  1. Sylvain GarriguesJul 31, 2016
  2. Jakub NarębskiJul 31, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.