From: Junio C Hamano Date: Wed, 6 Dec 2017 17:23:35 +0000 (-0800) Subject: Merge branch 'sb/submodule-recursive-checkout-detach-head' X-Git-Tag: v2.16.0-rc0~84 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0b75572a1b9f601b751d431faea55f492ea92ac9?ds=inline;hp=-c Merge branch 'sb/submodule-recursive-checkout-detach-head' "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 --- 0b75572a1b9f601b751d431faea55f492ea92ac9 diff --combined Documentation/git-checkout.txt index e108b0f74b,84bd323a00..bfa64ca5c9 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@@ -13,8 -13,7 +13,8 @@@ SYNOPSI 'git checkout' [-q] [-f] [-m] [--detach] 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 'git checkout' [-f|--ours|--theirs|-m|--conflict=