Merge branch 'js/checkout-detach-count' into maint
commita912913e864ea67f4544d3fb4d52e20bd3a6075e
authorJunio C Hamano <gitster@pobox.com>
Mon, 14 May 2012 18:42:22 +0000 (14 11:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 May 2012 18:42:22 +0000 (14 11:42 -0700)
treee97e376dce372d745eeaf8435c9b79e41b19cf1c
parentc8cf3ec7ae5e87082d18d64828f3c4f2de2eca66
parent5d8863954f077d2c262d5cc4fc669947ff23d6d5
Merge branch 'js/checkout-detach-count' into maint

When checking out another commit from an already detached state, we used
to report all commits that are not reachable from any of the refs as
lossage, but some of them might be reachable from the new HEAD, and there
is no need to warn about them.

By Johannes Sixt
* js/checkout-detach-count:
  checkout (detached): truncate list of orphaned commits at the new HEAD
  t2020-checkout-detach: check for the number of orphaned commits