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

Re: [PATCH 0/4] Loosening "two project merge" safety

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 21, 2016, 22:29 UTC
Message-ID
<xmqqtwiur3yj.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160421192500.23563-1-gitster@pobox.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Yaroslav Halchenko gave a vague "forcing 'git merge' users to always
> give --allow-unrelated-histories option when they create crap/insane
> merges are not nice", which I couldn't guess the validity due to
> lack of concrete use case.  Just in case it is substantiated, here
> is a series to selectively and safely loosen the safety for specific
> use cases and users.
>
> Junio C Hamano (4):
>   t3033: avoid 'ambiguous refs' warning
>   pull: pass --allow-unrelated-histories to "git merge"
>   merge: GIT_MERGE_ALLOW_UNRELATED_HISTORIES environment
>   merge: introduce merge.allowUnrelatedhistories configuration option
I've queued the first two on 'pu'.

I do not think the Kernel folks do not mind the latter two too much, but I am holding onto them for now. Unless the original "Gaah" did not come from Linus, I might even have said that this additional safety should be opt-in for people who know what they are doing (i.e. those who want the safety would set the new configuration), but I am undecided right now.

Show 10 quoted lines
>
>  Documentation/git-merge.txt     | 14 +-------------
>  Documentation/git.txt           |  7 +++++++
>  Documentation/merge-config.txt  |  7 +++++++
>  Documentation/merge-options.txt |  8 ++++++++
>  builtin/merge.c                 |  6 ++++++
>  builtin/pull.c                  | 11 +++++++++++
>  t/t3033-merge-toplevel.sh       | 31 ++++++++++++++++++++++++++++++-
>  t/t5521-pull-options.sh         | 28 ++++++++++++++++++++++++++++
>  8 files changed, 98 insertions(+), 14 deletions(-)
Previous: Junio C Hamano
Message 8 of 8 in “Loosening "two project merge" safety”
  1. 0/4 Loosening "two project merge" safetyJunio C Hamano, Apr 21, 2016
  2. 1/4 t3033: avoid 'ambiguous refs' warningJunio C Hamano, Apr 21, 2016
  3. 2/4 pull: pass --allow-unrelated-histories to "git merge"Junio C Hamano, Apr 21, 2016
  4. Stefan BellerApr 21, 2016
  5. Junio C HamanoApr 21, 2016
  6. 3/4 merge: GIT_MERGE_ALLOW_UNRELATED_HISTORIES environmentJunio C Hamano, Apr 21, 2016
  7. 4/4 merge: introduce merge.allowUnrelatedhistories configuration optionJunio C Hamano, Apr 21, 2016
  8. Junio C HamanoApr 21, 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.