]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/pull.c
pull: pass --allow-unrelated-histories to "git merge"
authorJunio C Hamano <gitster@pobox.com>
Fri, 18 Mar 2016 20:21:09 +0000 (13:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Apr 2016 18:58:51 +0000 (11:58 -0700)
commit09c2cb877a9cc0f6f25eac8d43663f4e8f3309a4
tree0e1a2e163c79237d21c8912c6af9c92b65bf8815
parentde224962148c6b32ea2a6eba85578cc16d6c86c1
pull: pass --allow-unrelated-histories to "git merge"

The previous commit said:

    We could add the same option to "git pull" and have it passed
    through to underlying "git merge".  I do not have a fundamental
    opposition against such a feature, but this commit does not do
    so and instead leaves it as low-hanging fruit for others,
    because such a "two project merge" would be done after fetching
    the other project into some location in the working tree of an
    existing project and making sure how well they fit together, it
    is sufficient to allow a local merge without such an option
    pass-through from "git pull" to "git merge".

Prepare a patch to make it a reality, just in case it is needed.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-merge.txt
Documentation/merge-options.txt
builtin/pull.c
t/t5521-pull-options.sh