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