Merge branch 'sb/submodule-recursive-checkout-detach-head'
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Dec 2017 17:23:35 +0000 (09:23 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Dec 2017 17:23:35 +0000 (09:23 -0800)
"git checkout --recursive" may overwrite and rewind the history of
the branch that happens to be checked out in submodule
repositories, which might not be desirable. Detach the HEAD but
still allow the recursive checkout to succeed in such a case.

* sb/submodule-recursive-checkout-detach-head:
Documentation/checkout: clarify submodule HEADs to be detached
recursive submodules: detach HEAD from new state

1  2 
Documentation/git-checkout.txt
submodule.c
t/lib-submodule-update.sh
Simple merge
diff --cc submodule.c
Simple merge
Simple merge