From: Junio C Hamano Date: Sun, 20 Mar 2011 00:35:37 GMT Subject: Re: [bug] git checkout lies about number of ahead commits when switching from detached HEAD Message-ID: <7vy64avdba.fsf@alter.siamese.dyndns.org> In-Reply-To: <20110319224726.GC7116@sigill.intra.peff.net> Jeff King 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.