Subject: Re: [bug] git checkout lies about number of ahead commits when switching from detached HEAD

From: Junio C Hamano <[email-masked]>
Date: Sat, 19 Mar 2011 17:35:37 -0700

Jeff King <[email-masked]> writes:

> but I'm not quite sure if this is the right place. Is it the
> responsibility of the checkout-orphan-warning code to clean up after
> itself, or is it the responsibility of a revision walker to clean up
> before itself?

Usually it is the former; the latter is generally impossible (unless it is
willing to clear everything), but the former knows where it started
traversal from.