From: "Jakub Narębski" <jnareb@gmail.com>
To: Sylvain Garrigues <sylgar@gmail.com>, git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>
Subject: Re: git 2.9 subtree split with rejoin
Date: Sun, 31 Jul 2016 19:32:51 +0200 [thread overview]
Message-ID: <ddf95185-0b87-b81b-6583-6e0aab5a6b5a@gmail.com> (raw)
In-Reply-To: <1BED74C8-2E4C-4CA7-B785-F0666B69C1A7@gmail.com>
W dniu 31.07.2016 o 16:32, Sylvain Garrigues pisze:
> 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'.
prev parent reply other threads:[~2016-07-31 17:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-31 14:32 git 2.9 subtree split with rejoin Sylvain Garrigues
2016-07-31 17:32 ` Jakub Narębski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ddf95185-0b87-b81b-6583-6e0aab5a6b5a@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=sylgar@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).