Re: [PATCH v4 2/5] dir_iterator: iterate over dir after its contents
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 30, 2017, 06:08 UTC
- Message-ID
- <xmqqinmr70uc.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <e412ef09-276b-92df-d2c0-0bf2f80238d2@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> I think IN_ORDER really only applies to *binary* trees, not arbitrary > trees like a filesystem.
How true. Even if we were giving a sorted output (and dir-iterator doesn't and there is no need for it to), dir/ should come before any of its contents, so for that application we can use pre-order, and there is no sensible and useful definition of in-order.
Thanks.