Skip to content

Loosening "two project merge" safety

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4t3033: avoid 'ambiguous refs' warningt/t3033-merge-toplevel.sh+1 -10 replies
2/4pull: pass --allow-unrelated-histories to "git merge"Documentation/git-merge.txt Documentation/merge-options.txt builtin/pull.c +1 more+36 -132 replies
3/4merge: GIT_MERGE_ALLOW_UNRELATED_HISTORIES environmentDocumentation/git.txt builtin/merge.c builtin/pull.c+12 -10 replies
4/4merge: introduce merge.allowUnrelatedhistories configuration optionDocumentation/git.txt Documentation/merge-config.txt builtin/merge.c +2 more+51 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Loosening "two project merge" safety

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

 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(-)
Signature · 1 line
2.8.1-422-g6d9b748